Is your text readable on its background? This free color contrast checker measures the contrast ratio between any foreground and background colour using the official WCAG formula, and tells you straight away whether the pair passes AA and AAA for normal text and large text. A live preview shows your colours as real text, so you can judge them with your own eyes too. Everything runs in your browser and nothing is saved or sent anywhere.
| AA — normal text (4.5 : 1) | ✓ Pass |
| AA — large text (3 : 1) | ✓ Pass |
| AAA — normal text (7 : 1) | ✓ Pass |
| AAA — large text (4.5 : 1) | ✓ Pass |
Your colours are checked in your browser and never leave your device. Nothing is saved or sent anywhere.
How to use this color contrast checker
Pick a foreground colour (your text) and a background colour using the colour pickers, or type a 6-digit hex code like #1A2B3C into the boxes. Click Check Contrast and you get the contrast ratio, a Pass or Fail for each WCAG level, and a live preview of sample text in your exact colours. The results update every time you change a colour.
What do AA and AAA mean?
WCAG, the Web Content Accessibility Guidelines, sets minimum contrast ratios so text stays readable for everyone, including people with low vision. AA is the standard most websites must meet: a ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. AAA is the stricter level: 7 to 1 for normal text and 4.5 to 1 for large text. Large text means 18 point or larger, or 14 point bold or larger. Black on white scores 21 to 1, the highest possible, while two similar greys can score close to 1 to 1 and fail everything.
Worked example
Set the foreground to #000000 (black) and the background to #FFFFFF (white) and click Check Contrast. The ratio is 21.00 : 1 and all four checks pass: AA normal, AA large, AAA normal and AAA large. Now set the foreground to #767676 (medium grey) on the same white background. The ratio is 4.54 : 1 — it passes AA normal, AA large and AAA large, but fails AAA normal, which needs 7 to 1. Set the foreground to #777777 and the ratio drops to 4.48 : 1, which fails even AA normal. A tiny change in grey makes the difference between passing and failing. (All ratios worked out with the WCAG formula in Node before writing.)
Frequently asked questions
What is a good contrast ratio?
For normal body text, aim for at least 4.5 to 1 (AA). For headings and large text, 3 to 1 is enough. If you can reach 7 to 1, you meet the strictest AAA level and your text is readable for almost everyone.
Why do two similar colours fail?
Contrast is measured from the relative brightness of the two colours, not from how different their names sound. Two mid-greys, or a pale colour on white, can be almost the same brightness even though they look different in a colour picker. The ratio tells the truth: below 3 to 1, most readers will struggle.
Are my colours safe here?
Yes. The check runs entirely in your browser. Your colours are never uploaded, stored or sent to any server.
What other tools can I use?
Try our HEX to RGB Converter to turn a hex code into RGB values, the Color Palette Generator for matching colour sets, the Gradient Generator for smooth colour blends, and the Font Pairing Generator for fonts that work together. See all of them on our tools page, use our free calculators, or return to the homepage.
Disclaimer: This tool calculates contrast using the WCAG 2 relative luminance formula in your browser. A passing ratio is a strong guide, but real readability also depends on font size, weight and screen quality — always check your design with your own eyes too.