Colour contrast checker

Check a text and background colour against WCAG 2.2 AA and AAA. If it fails, get the nearest colours that pass while keeping the same shade. Test a whole brand palette in one go, and preview it as people with colour blindness see it.

3.25:1Large text and icons only
34.57
✕AA normal text4.5:1 · WCAG 1.4.3
✓AA large text3:1 · WCAG 1.4.3
✕AAA normal text7:1 · WCAG 1.4.6
✕AAA large text4.5:1 · WCAG 1.4.6
✓Icons, borders and buttons3:1 · WCAG 1.4.11
Preview

The quick brown fox

Body text at a normal reading size. This is where contrast matters most, because people read a lot of it, often on a phone in bright light.

Small print and captions, 13 pixels.

NEAREST COLOURS THAT PASS
TEST A WHOLE PALETTE

Every colour against every other

Paste your brand colours, one per line, optionally with a name. Click any square to load that pair above.

InkSlateBrand blueSkySunPaper
Ink
Slate
Brand blue
Sky
Sun
Paper
AAA (7+)AA (4.5+)Large text only (3+)Fails

What the contrast rules say

WCAG 2.2 measures contrast as a ratio from 1:1 (white on white) to 21:1 (black on white). Level AA, which UK public sector sites must meet and most accessibility statements aim for, needs 4.5:1 for normal text and 3:1 for large text (24px, or 18.5px bold) and for things like icons, input borders and buttons. AAA raises that to 7:1 and 4.5:1.

Light grey text on white is the most common failure on modern websites, often in brand colours chosen on a big, bright screen. Pale brand colours on white buttons are the second. The fixes above keep the same hue and saturation and only move the lightness, so the result still looks like your brand.

Colour blindness

Around one in twelve men and one in two hundred women have some form of colour vision deficiency, most often difficulty telling red from green. Contrast is calculated from brightness, so a pair that passes still reads, but anything that relies on colour alone (red for errors, green for in stock) can disappear. Use the preview to check, and always pair colour with text or an icon.

Questions agencies ask

4.5:1 for normal text, and 3:1 for large text (at least 24px, or 18.5px bold). Icons, form field borders, focus outlines and the edges of buttons need 3:1 against what's next to them. AAA asks for 7:1 for normal text and 4.5:1 for large.

FOR AGENCIES

Brand colours failing accessibility?

I help agencies make sites accessible without redesigning them: adjusting colours in the theme, fixing forms, focus states and templates, so the site passes and still looks like the brand.

  • White-label, under your brand, or alongside your team
  • Laravel, WordPress, WooCommerce, integrations and tracking
  • Inherited and half-finished sites taken over and stabilised
  • UK based, straight to the developer, no account managers

Related free tools