Color Contrast Checker
Enter a text color and a background color to get the WCAG 2.2 contrast ratio, a pass or fail for AA and AAA, and the closest color that passes. Free, no sign-up, computed in your browser.
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 is not in the site scan, but other WCAG failures are
The scan reads your pages in a couple of minutes. Free: your score, the totals and the 5 issues to fix first. No card needed.
Scan for missing alt text, labels and namesHow to Use the Contrast Checker
Step 1
Enter two colors
Type or pick the text color and the background color: hex, rgb(), hsl() and CSS color names all work.
Step 2
Read the verdict
The ratio and a pass or fail for AA and AAA, for normal text, large text and UI components, update as you type.
Step 3
Take the fix
If a pair fails, the closest text color and the closest background color that pass are suggested, with the same hue.
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 color and the closest background color 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 colors 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.