WCAG ratio
Calculates the contrast ratio between any text and background colour.
Check text and background colors against WCAG AA and AAA.
Loading tool…
Low contrast is one of the most common accessibility problems on the web, and brand colors are often the cause. Enter a text and a background color to get the WCAG contrast ratio, pass or fail results for normal and large text, and a nearby color that passes if yours doesn't.
Calculates the contrast ratio between any text and background colour.
Pass or fail for normal and large text at both levels.
Proposes the nearest colour that passes, so you keep the brand feel.
4 quick steps. Going deeper? Read From jQuery to React in WordPress: an incremental migration that doesn't break the site.
Pick or type a text color and a background color (hex like #1a2b3c or rgb()).
Read the contrast ratio and the AA/AAA results.
If a check fails, apply the suggested color, which keeps the hue and adjusts lightness.
Check the preview at normal and large sizes.
Typical situations where this tool saves time.
Short answers about privacy, limits and how the tool works.
WCAG 2.2 AA requires 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold) and for UI components. AAA requires 7:1 and 4.5:1.
Not directly, but readable text improves engagement and accessibility, which are part of a good page experience.
Mid-tone colors such as many oranges, greens and light blues have similar luminance to white. Darken the color or use dark text.
I build custom calculators, admin utilities and integrations for WordPress, Laravel and Next.js teams.
Large text, 24px bold
Normal body text at 16px. The quick brown fox jumps over the lazy dog.
Small print and captions at 13px.