← All free tools

Free tool

Free Color Contrast Checker

Color contrast checker

Use this if you want a free color contrast checker to tell you whether people with low vision can read your text on its background.

Type the color of your text and the color behind it, and see their contrast ratio and whether it is enough for normal text, large text and icons at Level AA and Level AAA. The ratio comes from the same contrast engine the accessibility barrier check and the installed audit measure with.

Type the color of your text and the color behind it. A hex code works, and so do rgb() and hsl().

No account. No AI call. Nothing is uploaded: this runs in your own browser, so what you choose never reaches us to be kept.

You can link to this tool with some answers already chosen, and it waits for you to press the button. Example: https://vibecoderplayground.ai/free-vibe-coding-tools/color-contrast-checker.html?foreground=%23767676&background=%23ffffff

What it reads

This measures the contrast between the two colors you typed and checks the ratio against five levels. It reads those two colors and nothing else: no page, no font and no stylesheet.

What it does not look at

What to do with the result

Start with the Level AA rows. If normal-size text fails, change one of the two colors and check again until that row says met: the fixes say which way to move each one. Large text and icons need less contrast, so a pair that works for body text works for them too.

Level AAA is the stricter bar. Many sites aim for AA on everything and AAA on long blocks of reading text.

Run Next

The full audits these checks come from run in Vibe Coder Playground, on your own project: see the Playground download.

Questions about color contrast

What contrast ratio do I need?
For normal-size text, WCAG 2.1 success criterion 1.4.3 asks for 4.5:1 at Level AA, and criterion 1.4.6 asks for 7:1 at Level AAA. Large text, meaning 24px and up or 18.66px and up in bold, needs 3:1 for AA and 4.5:1 for AAA. Icons, borders and form controls need 3:1 under criterion 1.4.11.
Why does a pair at 4.49:1 fail when it is so close?
Each level is a cut-off, and a ratio just under it does not count. The checker compares the exact ratio and rounds the one it shows down, so it never prints 4.50:1 for a pair that is really 4.499:1.
Can I check a see-through color?
Yes, for the text. Type it as rgba() or hsla() and the checker blends it over the background first, then measures the color you would see. The background has to be solid, because whatever shows through it changes the answer.
Which color formats can I type?
A hex code such as #1a1a2e or #fff, with or without the #, or rgb(26, 26, 46), or hsl(240, 28%, 14%). Color names such as navy are not read, so type the hex code instead.
Are my colors sent anywhere?
No. The checker runs in your own browser, so the colors you type never reach us, and it makes no AI call.