Free tool
WCAG contrast checker: compare two colours
Check two opaque colours and compare their contrast ratio with the WCAG 2.2 AA and AAA text thresholds.
Two colours, one calculation
Enter text and background colours as hex values (#RGB or #RRGGBB). The calculation uses opaque sRGB colours, without transparency, images or gradients.
Sources : WCAG 2.2 AA · WCAG 2.2 AAA ·
What the result does not tell you
A passing ratio does not certify that a page is accessible. Font size, weight, interactive states and the real context still need checking. Thresholds are checked against the unrounded ratio.