Readable for everyone
Pick a text colour and a background. You get the WCAG contrast ratio, a pass or fail for AA and AAA at normal and large sizes and for interface parts, and the nearest shade of your colour that passes, so you can keep the brand and still be readable.
Check two colours
Go further
Bright brand reds and oranges rarely reach 4.5:1 on white at body-text size. A common fix: keep the bright red for large headings and buttons, and use a darker red for small text.
Lighthouse checks every text element as rendered. Explain a Lighthouse report →
Related free tools
Questions I get.
WCAG 2.2 level AA, the usual legal and practical target, asks for 4.5:1 for normal text and 3:1 for large text (about 24 px regular or 18.7 px bold and up) and for icons, borders and other interface parts. Level AAA asks for 7:1 and 4.5:1.
From the relative luminance of the two colours, (L1 + 0.05) / (L2 + 0.05), with the lighter colour on top, exactly as WCAG defines it. It runs from 1:1 (identical colours) to 21:1 (black on white).
It keeps your text colour’s hue and saturation and darkens or lightens it step by step until it passes, so the fix stays as close to your brand colour as possible. Copy the hex and try it in your design.
Yes, Lighthouse’s colour-contrast audit uses the same WCAG formula and thresholds. Lighthouse checks the colours as rendered on the page, including text over images, which a two-colour checker can’t see.
Want an accessible site by default?
Every site I build is checked for contrast, labels, focus and tap sizes before it launches.