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.

4.54:1contrast ratio

    What to know

    1. 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.

    2. 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.

    3. 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.