Free Tool
Color Contrast Checker
Check the contrast ratio between two colors against WCAG 2.1 AA and AAA requirements. Tests normal text, large text, and graphical UI components — the same criteria required by the European Accessibility Act.
Text color
#FFFFFF
Background color
#4D65FF
Normal text (16px) — The quick brown fox jumps over the lazy dog.
Large text (24px) — The quick brown fox jumps.
Color blindness simulation
Sample text preview
Large text
Protanopia
~1.3% of males
Sample text preview
Large text
Deuteranopia
~1.2% of males
Sample text preview
Large text
Tritanopia
~0.01% of population
Sample text preview
Large text
Achromatopsia
~0.003% of population
What is a color contrast checker?
A colour contrast checker is a tool that calculates the luminance ratio between a foreground (text) colour and a background colour, then compares it against WCAG 2.1 accessibility thresholds. Insufficient color contrast is the most common WCAG failure on the web, found on 83.6% of home pages according to the WebAIM Million 2024 analysis. This free tool by Askem tests all five WCAG contrast criteria and includes color blindness simulation for four vision types.
WCAG 2.1 contrast requirements
| Element | WCAG AA | WCAG AAA |
|---|---|---|
| Normal text (< 18pt / < 14pt bold) | 4.5:1 | 7:1 |
| Large text (≥ 18pt / ≥ 14pt bold) | 3:1 | 4.5:1 |
| UI components & graphical objects | 3:1 | — |
How to check color contrast
Enter your text colour and background colour using the hex input, RGB values, or the colour picker. The tool calculates the relative luminance of each colour and divides the lighter value by the darker value to produce the contrast ratio. It then compares this ratio against all five WCAG 2.1 thresholds and shows a pass or fail result for each.
If a colour pair fails, the tool automatically suggests the nearest passing combination by adjusting the lightness of your foreground colour. Click Apply to update both colours instantly. The URL updates with every change, so you can share a specific contrast check by copying the link.
Color contrast and the European Accessibility Act
The European Accessibility Act (EAA) references the EN 301 549 standard, which incorporates WCAG 2.1 Level AA requirements. This means organisations subject to the EAA must ensure their websites meet at least 4.5:1 contrast for normal text, 3:1 for large text, and 3:1 for UI components.
An accessibility audit typically flags colour contrast as one of the first issues. Using a contrast checker during the design phase prevents these failures before they reach production.
Why colour contrast matters for accessibility
When text does not have enough contrast against its background, it becomes difficult or impossible to read for people with low vision, colour blindness, or anyone using a screen in bright sunlight. Proper contrast benefits all users — not just those with disabilities.
This tool checks a single colour pair. To scan your entire website for contrast issues and other accessibility violations automatically, see Askem Quality Assurance. You can also test your full site with our website accessibility checker.
Last updated: March 2026
Frequently Asked Questions
What contrast ratio is required for WCAG AA?
What contrast ratio is required for WCAG AAA?
What counts as large text in WCAG?
What is the minimum contrast for UI components?
Does the European Accessibility Act require color contrast compliance?
How do I fix a failing contrast ratio?
How does color blindness affect contrast perception?
Can I share my contrast check results?
What is a color contrast checker?
Is this contrast checker free to use?
This checks one pair of colors. Askem scans your entire site automatically.
- Continuous WCAG monitoring
- Contrast, alt text, headings, and more
- GDPR compliant — EU hosted