Color Contrast Checker: WCAG AA/AAA & Color Blindness
Check if text and background pass WCAG 2.2 AA and AAA, get the nearest passing text color and preview 4 types of color blindness. Free, in your browser.
Updated November 2026
Reviewed by Rafael Duarte
Good color contrast ensures text is readable for all users, including those with low vision or color blindness. Aim for WCAG 2.2 AA compliance to meet legal accessibility standards.
Accessibility Fix
Your colors pass AA!
No fix needed for normal text contrast.
Color Blindness Simulation
WCAG 2.2 Reference
| Metric | Current Value | Threshold | Status |
|---|---|---|---|
| Normal Text (AA) | 6.18:1 | 4.5:1 | PASS |
| Normal Text (AAA) | 6.18:1 | 7:1 | FAIL |
| Large Text (AA) | 6.18:1 | 3:1 | PASS |
| Large Text (AAA) | 6.18:1 | 4.5:1 | PASS |
| UI Components (AA) | 6.18:1 | 3:1 | PASS |
How the color contrast checker works
Two colors, instant WCAG compliance
1. Set text and background colors
Click a swatch to open the picker, or type a HEX code: 6 digits, or 3 digits like F0A, which expand when you leave the field. "Swap Colors" flips foreground and background instantly.
2. Read the compliance results
See the contrast ratio and AA/AAA pass-fail status for normal text, large text, and UI components in one view.
3. Fix the color or simulate color blindness
"Accessibility Fix" suggests the closest text color that reaches 4.5:1 while keeping your hue; the Color Blindness Simulation shows the pair as seen with 4 types of color blindness.
What this color contrast checker does
More than a contrast ratio calculator
Automatic accessible color suggestion
When normal text fails AA, it lightens or darkens only the text color, keeping hue and saturation, to the nearest shade that reaches 4.5:1. The background is never changed.
4 color blindness simulations
Deuteranopia, Protanopia, Tritanopia, and Achromatopsia, plus Normal vision, each with its own simulated contrast ratio.
Live text and UI preview
Renders your color pair as a 24px heading, 14px body text, and two buttons. With a simulation active, the preview switches to the simulated colors.
Copy the ratio with a shortcut
Press Shift+Enter while no text field has focus to copy the current contrast ratio, ready to paste into an audit report.
Runs entirely in your browser
No color values are sent to a server, which makes it safe to check unreleased brand palettes.
Contrast ratio reference points
Common combinations and where they land
When you'll reach for this tool
The most common scenarios among people who use it
Web and mobile design review
Check text, buttons, and form fields before shipping — catching a failing pair before launch is far cheaper than fixing it after.
Accessibility audits
The WCAG 2.2 Reference table lists all 5 checks with the current value and the threshold for each, so you can go through them one by one.
Dark mode contrast checks
The same WCAG ratios apply to dark themes — confirm your light text still clears the bar against a dark background.
Brand color accessibility
Check whether a brand color works as body text or a UI element, and find the closest passing alternative if it doesn't.
Common mistake? Start here
Trusting how different colors look, not the number
Two colors that look visually distinct can have almost identical luminance and still fail — always verify with the actual ratio.
Ignoring color blindness even after passing WCAG
WCAG measures luminance, not hue difference, so a red/green pairing can pass the ratio test and still be indistinguishable to colorblind users.
Forgetting that text size changes the requirement
Large text (18pt and up, or 14pt bold) only needs 3:1 instead of 4.5:1 — bumping the font size can save a color that otherwise fails.
Assuming the suggested fix also passes AAA
The Accessibility Fix panel targets the AA minimum of 4.5:1, not the 7:1 of AAA, and only appears when normal text fails AA. If your project requires AAA, adjust the text color by hand until the ratio reaches 7:1.
Why use this contrast checker
Low contrast is the single most common accessibility failure on the web, present on 83.9% of home pages according to the WebAIM Million 2026 report. In the US, the revised Section 508 standards for federal ICT incorporate WCAG 2.0 Level AA, and the 2024 ADA Title II rule for state and local governments adopts WCAG 2.1 Level AA; both include the 4.5:1 contrast minimum.
The automatic fix suggestion and color blindness simulation go further than a plain ratio calculator — they show you exactly how to resolve a failure and surface problems that the number alone won't reveal.
WCAG 2.2 contrast requirements
AA (the level most rules reference) vs. AAA (enhanced)
Frequently asked questions
It's a tool that calculates the contrast ratio between two colors — typically text and its background — and tells you whether it meets WCAG accessibility standards. This one also simulates color blindness and suggests accessible alternatives when a pair fails.
WCAG 2.2 level AA requires a ratio of at least 4.5:1 for normal text and 3:1 for large text. Level AAA raises that to 7:1 and 4.5:1 respectively. UI components and graphical objects need at least 3:1 at the AA level.
Yes. WCAG contrast is based on relative luminance, not hue — a bright blue and a bright green can have nearly identical luminance and still fail the ratio test even though they look visually distinct. That's why you should always check the number instead of judging by eye.
Color blindness affects how people perceive hue — deuteranopia and protanopia (red-green confusion) are the most common types, affecting roughly 1 in 12 men. WCAG measures luminance rather than color distinction, so a pair can pass the official ratio and still be hard to tell apart for colorblind users, which is why simulating it matters.
When normal text fails AA, the "Accessibility Fix" panel shows the nearest text color that reaches 4.5:1 with the same hue and saturation, and the Apply button swaps it in. The suggestion only changes the text (foreground) color; if you'd rather change the background, adjust it by hand and watch the ratio. Another way out is larger text, which only needs 3:1.
Yes, the same WCAG ratios apply regardless of theme. Put the dark color in Background and the light text in Foreground (Text); the ratio is the same whichever color is lighter. For example, #E0E0E0 on #121212 gives 14.19:1 and passes AAA. Dark themes are a common place for contrast failures, since designers often dim secondary text for a softer look.
WCAG treats text as large when it's at least 18pt (about 24px) or at least 14pt bold (about 18.66px). Large text needs 3:1 for AA and 4.5:1 for AAA. That's why the preview shows a 24px heading: it sits right at the large-text threshold.
In the Color Blindness Simulation panel, choose Deuteranopia, Protanopia, Tritanopia or Achromatopsia. The tool shows both colors as they would be perceived, the simulated contrast ratio, and switches the live preview to the simulated colors. Go back to Normal to see the original colors. Need to grab a color from your screen first? The Hex Color Picker has an eyedropper.
Resources
Related Tools
- HEX to RGB Converter with HSL & CMYK Values Design Paste a HEX code and copy its RGB, HSL and CMYK values instantly, with 4 harmony colors, a contrast check against white and CSS palette export.
- Color Scheme Generator: Complementary, Triadic & Analogous Design Pick a base color and get 5 harmonious colors: analogous, monochromatic, complementary, triadic or tetradic. Preview them on a site, export CSS or JSON.
- Color Palette from Image: Extract HEX, RGB & HSL Codes Design Upload a photo or logo and extract 3 to 12 dominant colors as HEX, RGB and HSL. Export CSS variables, Tailwind, JSON or PNG. Nothing leaves your browser.
- CSS Box Shadow Generator: Tailwind, Neumorphism & Glass Design Create CSS box shadows with a live preview and ready-made presets, or switch to neumorphism and glassmorphism. Copy as CSS, a Tailwind class or a variable.
- Flexbox Generator: CSS, Tailwind & React Code Design Build flex layouts with a live preview and 11 presets, set grow, shrink and order per item, then copy the code as CSS, Tailwind classes or React styles.