Contrast Checker
Enter a text colour and a background to see the ratio, which standards it meets, and a live preview. When it fails, the tool suggests the closest colour that would pass.
Contrast ratio
1.81:1
Fail
Large heading text
Body text at a normal size, which is what the 4.5:1 threshold is about. If this is hard to read, the number on the left is telling you why.
Smaller supporting text, the kind used for captions.
Against each standard
- Normal text AA · needs 4.5:1 Fails
- Normal text AAA · needs 7:1 Fails
- Large text AA · needs 3:1 Fails
- Large text AAA · needs 4.5:1 Fails
- UI components AA · needs 3:1 Fails
Nearest colour that passes
#00874f
4.59:1 — same hue, adjusted lightness
About the Contrast Checker
Contrast is the accessibility requirement that affects the most people and takes the least effort to meet. Low contrast is hard to read for anyone with reduced vision, for everyone over about forty, and for all of us on a phone in daylight. The WCAG thresholds — 4.5:1 for normal text, 3:1 for large text and interface components — are not high bars, and text that clears them is simply easier for everyone to read.
The number comes from relative luminance, which weights the three colour channels by how much each contributes to perceived brightness. Green counts for about 72% of it and blue for about 7%, which is why changing the blue channel of a colour barely moves the ratio and changing the green moves it a lot. It is also why two colours that look equally dark can have very different contrast against the same background.
The preview matters as much as the number. A ratio of 4.6:1 passes and can still be unpleasant to read at small sizes, and the only way to know is to look at real text rather than a swatch. Both are here for that reason.
When a pair fails, the suggestion adjusts perceptual lightness while holding hue and chroma — so what comes back still looks like the colour that was chosen, rather than an unrelated one that happens to pass. On a light background it darkens; on a dark one it lightens; and when nothing in that direction passes it says so instead of offering something that does not work.
Everything runs in your browser.
Frequently asked questions
What ratio do I actually need?
4.5:1 for normal body text, 3:1 for large text — 18.66px bold or 24px regular — and 3:1 for interface components and graphics. AAA raises the first two to 7:1 and 4.5:1.
Why does changing the blue barely affect the ratio?
Because relative luminance weights green at about 72% and blue at about 7%, matching how much each contributes to perceived brightness. Adjusting green moves the ratio far more than adjusting blue.
How is the suggested colour chosen?
By adjusting perceptual lightness while holding hue and chroma, so the result still looks like the colour you picked. It darkens on light backgrounds and lightens on dark ones.