Colour Contrast Checker WCAG AA – Text on Background, Free Online

Why contrast decides whether people can read your site

Contrast is the difference in brightness between text and its background. When the difference is small, light grey text on a white background, for example, many people cannot read it at all. People with low vision, older readers, and anyone reading in bright sunlight all struggle with low contrast text, even if the font and the size are perfect.

That is why the web accessibility standard, WCAG, sets hard numbers. For normal text, the ratio must be at least 4.5 to 1 to pass AA, the level most laws and most companies require. For large text, 3 to 1 is enough, because big letters are easier to read. The strictest level, AAA, needs 7 to 1 for normal text. This tool checks your colours against all three.

How to use the checker

Type the text colour as a hex code, for example 1A5276 for a dark blue, and the background colour, for example FFFFFF for white. Or use the colour pickers to choose by eye. The tool updates live as you type or pick.

The result line shows the contrast ratio, like 6.75 to 1. The details line shows three verdicts: AA for normal text, AA for large text, and AAA for normal text, each PASS or FAIL. The preview box shows the sentence in your real colours, so you can judge it with your own eyes. The bar shows where the ratio falls, from fail to AAA.

Worked example

Take black text on a white background, 000000 on FFFFFF. The ratio is 21 to 1, the highest possible, and it passes every level, including AAA. Now take medium grey text, 767676, on white. The ratio is 4.54 to 1, which passes AA for normal text, but only just. One shade lighter, and it fails.

Take a dark red, C0392B, on white. The ratio is 5.44 to 1, which passes AA for normal text and fails AAA. And a dark blue, 1A5276, on a pale yellow, F9E79F, gives 6.75 to 1, which passes AA comfortably but still fails AAA. The numbers show that passing AA is easy with dark text on light backgrounds, while AAA needs very dark text indeed.

Who uses this checker

Web designers use it most, usually when they pick a colour palette, to check that body text, buttons, and links are readable before the site goes live. Developers use it to test a theme, and content teams use it to check that a new brand colour works for text.

It also helps small business owners who build their own site, teachers who make slides and handouts, and anyone who writes emails with coloured text. A site that fails contrast is not just ugly, it is unreadable for a large part of the audience, and in many countries it is also against accessibility law.

Honest limitations

The ratio is a maths formula, not a human eye. It measures relative luminance, which is how bright a colour is, but it does not measure font weight, letter spacing, or the size of the text beyond the large and normal split. Thin light text at 4.5 to 1 can still be hard to read, and bold text at 3 to 1 can be easy.

The tool also checks only one colour pair at a time. A real page has many pairs: body text, headings, links, buttons, and text on images. Check each one separately. And the preview is on your screen, with your brightness settings, so test the real page on a phone in sunlight too, because that is where low contrast fails hardest.

Frequently asked questions

What is the difference between AA and AAA? AA is the standard level, 4.5 to 1 for normal text. AAA is the strict level, 7 to 1 for normal text. Most laws ask for AA. AAA is a goal for sites that want to be readable by everyone.

What counts as large text? Large text is 18 point or bigger, or 14 point bold or bigger. Large text only needs 3 to 1 to pass AA, because big letters are easier to read.

Why does white on white fail? Because the ratio is 1 to 1, no difference at all. The text is invisible. The tool shows a ratio of 1 and a fail for every level.

Can I use this for print? The numbers come from the web standard, but the idea works for print too. Dark text on light paper with a ratio above 4.5 is readable, and the same logic applies to slides, posters, and signs.

También disponible en español: Comprobador de Contraste de Color WCAG AA – Texto sobre Fondo, Gratis

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top