Color Contrast Checker
Enter a text colour and a background colour to get the WCAG 2.2 contrast ratio, a pass or fail for AA and AAA, and the closest colour that passes.
Contrast ratio
21.00:1
Passes AA and AAA for all text
Normal text, 16px. The quick brown fox jumps over the lazy dog.
Large text, 24px regular
Large text, 18.66px bold
PassAA
Normal text
Needs 4.5:1, WCAG 1.4.3
PassAA
Large text
Needs 3:1, WCAG 1.4.3
PassAAA
Normal text
Needs 7:1, WCAG 1.4.6
PassAAA
Large text
Needs 4.5:1, WCAG 1.4.6
PassAA
UI components and graphics
Needs 3:1, WCAG 1.4.11
Contrast needs a rendered page, so our site scan does not measure it. It does read every page for the other WCAG failures: missing alt text, labels and names
WCAG Contrast Requirements
| What | AA | AAA | Criterion |
|---|---|---|---|
| Normal text | 4.5:1 | 7:1 | 1.4.3 and 1.4.6 |
| Large text: 24px regular, or 18.66px bold | 3:1 | 4.5:1 | 1.4.3 and 1.4.6 |
| UI components and meaningful graphics | 3:1 | none | 1.4.11 |
The lightest grey that passes AA on white is #767676, at 4.54:1. One step lighter, #777777, is 4.47:1 and fails. Pure red #ff0000 on white is 3.99:1: enough for large text, not for body text.
Why the Exact Ratio Matters
WCAG sets minimums, not targets, and it does not round. A ratio of 4.4988:1 fails AA for normal text, even though it reads as 4.50 when rounded. That is not a theoretical case: it is #0078d7, the Windows accent blue, on white.
This checker decides every pass and fail on the exact value and displays it truncated, never rounded up, so the number on screen can only understate the ratio. When a pair fails, it computes the closest text colour and the closest background colour that pass, keeping the hue, so the fix is usually a shade you will not notice.
Contrast Is One Check Among Many
Low contrast is among the most frequent accessibility failures, and it is the one that needs real colours to measure. The others live in the markup: images without alt text, form fields without labels, buttons and frames without an accessible name. The Accessibility Checker finds those on any page, and the accessibility error guides explain each one, including how to fix low contrast across a design system.