Colour contrast checker (WCAG AA and AAA)
Free colour contrast checker. Check text and background colours against WCAG 2.2 AA and AAA, and get the closest colour that passes.
- Kind
- Check
- You give it
- Two colours
- How it works
- Runs in your browser
- Costs
- Free, no sign-up
Large text preview
Normal text: Book your appointment online in two minutes.
What to know
What the numbers mean
Contrast is a ratio from 1:1 (no difference) to 21:1 (black on white). WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text and for buttons, icons and form borders.
Why it matters
Low-contrast text is the most common accessibility error on the top million home pages (WebAIM Million, 2026). It also makes text hard to read for anyone on a phone in sunlight.
How to fix a fail
Darken the text or lighten the background until the ratio passes. The checker suggests the closest text colour that passes AA, so your design changes as little as possible.
Sources: W3C, Understanding WCAG 2.2, Contrast (Minimum) 1.4.3 (2023); W3C, Understanding WCAG 2.2, Non-text Contrast 1.4.11 (2023); WebAIM Million 2026 (2026)
How to use it
Pick your text colour and background with the colour pickers, or type the hex codes from your brand guide or website builder (for example #767676). The preview shows both, and the table shows which WCAG levels the pair passes.
Check your body text, links, button labels and placeholder text in forms: those are where low contrast usually hides. Grey text on white and white text on a light brand colour are the most common fails.
Then check the rest of the page with our accessibility checker, and see website accessibility in plain English.
How this works
It all happens in your browser. What you type isn’t sent to us. It works out the contrast ratio between your two colours with the WCAG 2.2 formula and compares it with the thresholds: 4.5:1 for normal text and 3:1 for large text at level AA, 7:1 and 4.5:1 at AAA, and 3:1 for buttons, icons and borders. If a pair fails, it suggests the closest text colour that passes AA on your background.
It only knows the two colours you enter. Text over photos or gradients changes from spot to spot, so test the lightest part of the background behind your text.
Questions
Common questions
What counts as large text?
In WCAG, text at least 18 point (usually 24 CSS pixels) regular, or 14 point (about 18.66 pixels) bold. Large text needs 3:1 for AA and 4.5:1 for AAA.
Does contrast apply to logos?
No. Text that is part of a logo or brand name has no contrast requirement in WCAG. Everything else people need to read does.
What about text over photos?
Check it against the lightest and darkest parts of the photo behind it. A dark overlay or a solid panel behind the text is the usual fix.
Is the calculation exact?
It uses the WCAG relative luminance formula. The ratio shown is rounded down, so a pair shown as passing really does pass.
- CheckAccessibility checkerFree accessibility checker. Finds missing alt text, unlabelled form fields, empty links and buttons, a missing page language and heading problems.
- CheckAlt text checkerLists every image on a page and flags the ones a screen reader can’t describe.
- CheckReadability checkerFree readability checker. Paste your text to get a Flesch reading ease score, grade level and the long sentences to shorten. Runs in your browser.
- CheckHeading checkerFree heading checker. See your page’s heading outline as screen readers and search engines do, and spot missing h1s, skipped levels and empty headings.
- MakerAccessibility statement generatorCreate a clear, honest accessibility statement for your website in a few minutes, following the W3C’s recommended contents. Free, in your browser.