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.
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.
- The contrast ratio between the two colors, from 1:1 (the same color) to 21:1 (black on white), rounded down so it never reads higher than it is
- Normal-size text, Level AA: success criterion 1.4.3 of WCAG 2.1, met at 4.5:1 or more and failed below it
- Large text, Level AA: success criterion 1.4.3 of WCAG 2.1, met at 3:1 or more and failed below it
- Icons, borders and form controls, Level AA: success criterion 1.4.11 of WCAG 2.1, met at 3:1 or more and failed below it
- Normal-size text, Level AAA: success criterion 1.4.6 of WCAG 2.1, met at 7:1 or more and failed below it
- Large text, Level AAA: success criterion 1.4.6 of WCAG 2.1, met at 4.5:1 or more and failed below it
What it does not look at
- your page. Only the two colors you typed are measured, so a color your site really uses somewhere else, or in a hover or dark-mode state, is not checked
- the size and weight of your text. You pick which row applies: large text means 24px and up, or 18.66px and up in bold
- text over a photo, a gradient or a pattern, where the color behind each letter changes. Type the lightest or darkest spot behind the text to check the worst case
- whether people can read the text for other reasons: the font, the line spacing, how long the lines are, or color used as the only signal
- whether a law applies to your site, or whether your site meets one. Whether the ADA or any other rule applies is a question for your counsel, and nothing here is a legal finding
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
- Free Accessibility Checker: paste a whole page and it measures contrast for every color its styles set, with the same engine, plus missing alt text, labels and language.
- Free SEO Checker: check the title, description and headings of the page those colors sit on.
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.