What is the Color Contrast Checker?
Light grey text on white looks elegant in a design file and becomes unreadable on a phone in the sun, or for anyone with weaker eyesight. The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios so text stays readable for everyone.
Pick or type two colours and the tool shows the contrast ratio, whether it passes AA and AAA for normal text, large text and interface parts such as icons and form borders, and a live preview. If a check fails, it suggests the closest version of your text colour that passes, keeping the same hue, so your brand colours stay recognisable.
Features
Exact ratio
Worked out with the WCAG 2 formula.
AA and AAA
Normal text, large text and interface parts.
Live preview
See headings, body text and small print.
Fix it
The closest colour that passes, one click away.
Swap
Check light text on dark in one click.
Any colour format
HEX, RGB or colour names.
How to use the Color Contrast Checker
- 1
Pick or type the text colour and the background colour.
- 2
Read the ratio and the AA and AAA results.
- 3
If it fails, use the suggested colour that passes.
Who it is for
Web and app design
Check buttons, links and text against their backgrounds.
Accessibility audits
Prove a page meets WCAG AA.
Brand guides
Find which brand colours can be used for text.
Tips for better results
- AA asks for 4.5:1 for normal text and 3:1 for large text; most laws and guidelines expect AA.
- Large text means at least 24 px, or 18.5 px when bold.
- Placeholder text in forms also needs enough contrast if it carries information.
Your privacy: it stays on your device
- This tool runs entirely in your browser. What you type and the files you choose are processed on your own device and are never sent to our server.
- Nothing is uploaded, stored or kept in a history, so it is safe for private text, documents, photos and keys.
- It keeps working on a slow connection, because no answer has to come back from a server.
Questions people ask
What is a good contrast ratio?
At least 4.5:1 for body text (AA). 7:1 (AAA) is even easier to read. Pure black on white is 21:1.
Why does my colour pass for large text but not for normal text?
Big letters are easier to read, so WCAG asks only 3:1 for them, while normal text needs 4.5:1.