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.

Contrast ratio

    Large text: at least 18 pt (24 CSS px), or 14 pt (about 18.67 CSS px) in bold. Check the actual font size and weight in your interface.

    This calculation stays in your browser. Entered colours are not sent anywhere.

    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.