◑
WCAG Contrast Checker
Enter a foreground and a background colour, get the WCAG contrast ratio and whether AA / AAA pass, with colour-blindness previews.
Runs in browserAccessibilityContrast
Loading tool…
How to use
- Enter a foreground and a background colour (#hex, rgb(), hsl(), oklch() and named colours all work).
- The ratio follows the WCAG 2.x formula: relative luminance of the two colours, independent of their order.
- All four colour-blindness simulations are shown, each with its own pass or fail verdict.