Skip to content

Color Contrast Checker

Make sure text is readable for everyone. Enter two colors to get the contrast ratio and a pass or fail for each WCAG level.

Runs in your browser. Nothing you enter is uploaded or stored.

Large text sample

Normal body text sample. The quick brown fox jumps over the lazy dog.

—contrast ratio

    How to use Color Contrast Checker

    1. Enter or pick the text and background colors.
    2. Read the ratio and the WCAG results.
    3. Adjust colors until the levels you need pass.

    Questions

    What contrast ratio do I need?

    WCAG AA needs 4.5:1 for normal text and 3:1 for large text (24 px, or 18.7 px bold) and for icons and form borders. AAA needs 7:1 for normal text.

    How is the ratio calculated?

    It uses the WCAG 2 formula: (lighter luminance + 0.05) ÷ (darker luminance + 0.05), from 1:1 to 21:1.