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.
From the relative luminance (perceived brightness) of the two colours, using the formula in WCAG: (lighter + 0.05) divided by (darker + 0.05). Hue makes no difference, which is why a red and a green of the same brightness can fail.
No. Logos and brand names in logos are exempt from WCAG contrast rules, as is text that's purely decorative or part of an inactive control. Everything people need to read or use is covered.
Keep the brand colour for large headings, backgrounds and decoration, and use a darker version of it for body text and buttons. The suggestions above find the nearest passing shade in the same hue, which usually still looks on-brand.
APCA is a newer contrast method being developed for a future WCAG 3. It isn't part of any standard you can be required to meet yet, so this tool checks against WCAG 2.2, which is what UK accessibility rules and audits use.
In your browser only, so your palette is there next time. Nothing is sent to this server.
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