Check Color Contrast for WCAG AA and AAA
Pick a text color and a background color to get the contrast ratio and a pass or fail for WCAG AA and AAA, then preview the pair as people with color blindness see it.
Accessible Design Matters
This is a sample paragraph to demonstrate how your selected colors render together. Good contrast ensures readability for everyone.
Select a simulation mode below to apply filters to the live preview area.
If your current colors fail the WCAG checks, use the auto-fix suggestions below to find the closest compliant colors while keeping your original brand aesthetics.
Current colors pass WCAG AA. No fixes needed!
Suggested Compliant Variants:
Export your selected colors as CSS variables, Tailwind configuration, or design tokens.
Normal Text
Large Text
UI Components
Frequently Asked Questions
How to Use the Color Contrast Checker
-
Set foreground and background colors
Choose your text color (foreground) and background color with the color pickers, or type the HEX codes. The contrast ratio updates as you change the colors. -
Read your WCAG result
The tool shows the contrast ratio (for example 5.2:1) and whether it passes WCAG AA (4.5:1 for normal text) and AAA (7:1). Large text and UI components have lower thresholds. -
Simulate color blindness
Open the Vision Simulation tab to see how your colors look with protanopia, deuteranopia, tritanopia or achromatopsia, or with blurred vision and in bright sunlight. -
Use Auto-Fix if needed
If your colors fail, open Auto-Fix. It suggests the nearest text color that passes AA or AAA, keeping your hue and saturation, and applies it with one click.
Contrast Ratio Reference
WCAG 2.1 minimum contrast requirements for different text categories:
| Content Type | WCAG AA | WCAG AAA | Example Ratio |
|---|---|---|---|
| Normal text | 4.5:1 | 7:1 | #000 on #fff → 21:1 |
| Large text (18 pt, or 14 pt bold) | 3:1 | 4.5:1 | #333 on #fff → 12.6:1 |
| UI components and icons | 3:1 | N/A | #767676 on #fff → 4.5:1 |
| Decorative elements and logos | No requirement | No requirement | Exempt |
Common Use Cases
UI / Visual Design Review
Test every text and background combination in your design system before handoff to development, catching failures early.
Accessibility Audits
Provide documented contrast ratios for client accessibility reports and WCAG 2.1 / 2.2 compliance certifications.
Color Blindness Testing
About 1 in 12 men has some form of color blindness. Simulate it to make sure no critical information is lost when red and green look alike.
Legal Compliance
Meet ADA (USA), EAA (EU), and EN 301 549 digital accessibility requirements before product launch or public tender.
Developer QA
Quickly verify contrast of CSS color variables during code review, without switching to a design tool.
How It Works
All calculations run in your browser using the WCAG 2 luminance formula. Nothing is sent to a server.
- Relative Luminance
- WCAG defines luminance as a weighted sum of linearised RGB channels: L = 0.2126R + 0.7152G + 0.0722B. The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color.
- Color Blindness Simulation
- The simulator applies a color matrix filter for each type of color vision deficiency to the live preview. It's an approximation for design review, not a medical test.
- Auto-Fix Algorithm
- Auto-Fix iterates over the lightness channel in HSL space, finding the minimum adjustment that reaches the target ratio (AA or AAA) while keeping hue and saturation unchanged.
Who This Tool Is For
UI/UX Designers
Test color combinations before design handoff and maintain a compliant design system.
Accessibility Specialists
Produce contrast evidence for WCAG audits, client reports, and compliance certifications.
Frontend Developers
Quickly check CSS color variables during development and code review without leaving the browser.
Product Managers
Ensure legal accessibility compliance (ADA, EAA) before product launch or public tender submission.
Content Creators
Verify that text overlaid on images or colored backgrounds is readable for all audiences.
Tips for Better Accessible Design
- Treat WCAG AA (4.5:1) as the minimum for body text, and aim for AAA (7:1) where you can, especially on healthcare, government and financial sites.
- Run every color blindness simulation, not just deuteranopia. Each type makes a different pair of colors look alike.
- Never rely on color alone to convey information. Pair it with an icon, a pattern or a text label.
- To raise contrast, change the lightness of one color rather than its hue. That keeps your palette recognizable.
- Check your design on a phone outdoors. Bright sunlight shows contrast problems that a desk monitor hides.
Why Accessibility Contrast Matters
- About 1 in 12 men and 1 in 200 women have some form of color vision deficiency. Poor contrast shuts many of them out.
- Low-contrast text is the most common accessibility error on the web: the WebAIM Million report finds it on about 80% of home pages.
- In the U.S., the 2024 ADA Title II rule requires state and local government websites to meet WCAG 2.1 AA, and WCAG is the benchmark in ADA lawsuits against businesses. In the EU, the European Accessibility Act has applied since June 2025.
- Good contrast helps everyone: in bright sunlight, on cheap screens and as eyesight changes with age.
Performance & Privacy
Every contrast calculation, color blindness simulation and auto-fix runs in your browser. No colors or usage data are sent to a server.
Educational Note: WCAG and Color Vision
WCAG 2.1 vs 2.2
WCAG 2.2 (2023) added new success criteria, such as 2.4.11 Focus Not Obscured and 3.2.6 Consistent Help, but kept the contrast requirements (1.4.3, 1.4.6 and 1.4.11) the same as in 2.1.
Luminance vs Brightness
WCAG uses relative luminance, a measure weighted by how sensitive the eye is to red, green and blue. Bright yellow (#ffff00) has a luminance of 0.93 and dark navy (#003366) 0.03, which gives a ratio of 11.7:1.
Types of Color Blindness
Red-green color blindness (protanopia, deuteranopia and their milder forms) is by far the most common, affecting about 8% of men. Blue-yellow tritanopia and complete color blindness (achromatopsia) are rare.
APCA and WCAG 3
The Accessible Perceptual Contrast Algorithm (APCA) is being considered for WCAG 3. It scores contrast differently depending on font size, weight and whether text is dark on light or light on dark. WCAG 2 remains the standard for compliance today.
Troubleshooting
Did You Know?
The 4.5:1 minimum isn't arbitrary. According to the WCAG documentation, it compensates for the loss of contrast sensitivity typical of people with vision of about 20/40, which is common with age. The stricter 7:1 AAA level does the same for vision of about 20/80.
Check Your Colors Now
Good contrast is not just a compliance checkbox. It makes your text easier to read for everyone. Check your color contrast here, see your palette through the eyes of people with color blindness and fix what fails, all in your browser and for free.