Contrast Checker
Pick a text color and a background color to see their WCAG contrast ratio, which accessibility levels they pass, and how the pair actually looks.
Large sample heading (18pt and up)
Normal sample text. The quick brown fox jumps over the lazy dog, at the size body copy is usually read.
Small sample text, the hardest case for low contrast pairs.
Ratios follow the WCAG 2.1 formula. AA asks for 4.5:1 on normal text and 3:1 on large text; AAA asks for 7:1 and 4.5:1. Everything runs in your browser; the colors never leave this device.
Frequently asked questions
What do AA and AAA mean?
They are the WCAG accessibility levels for text contrast. AA requires a ratio of at least 4.5:1 for normal text and 3:1 for large text. AAA is stricter: 7:1 for normal text and 4.5:1 for large text. Large text means roughly 18pt and up, or 14pt and up when bold.
How is the ratio calculated?
From the WCAG 2.1 relative luminance formula: each color's luminance is computed from its sRGB channels, and the ratio is (lighter + 0.05) divided by (darker + 0.05). Black on white gives the maximum, 21:1.
My colors pass AA large but fail AA normal. Is that usable?
Only for genuinely large text: headings and big display copy. Body text, form labels, and small print need the normal-text threshold, so treat a normal-text failure as a real problem for those uses.