Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    Color Contrast Checker

    Enter a text colour and a background colour to see the contrast ratio and whether it passes WCAG AA and AAA. If it fails, the tool suggests a text colour that reaches 4.5:1.

    Features

    • Contrast ratio with pass or fail for AA and AAA
    • Separate results for normal text, large text and buttons or icons
    • Live preview with sample text
    • Suggests a text colour that passes AA

    How to use Contrast Checker

    1. Enter the text colour and the background colour.
    2. Read the ratio and the pass or fail results.
    3. Use the suggested colour if the pair fails.

    Frequently asked questions

    What contrast ratio do I need?

    WCAG 2 asks for at least 4.5:1 for normal text and 3:1 for large text at level AA. Level AAA asks for 7:1 and 4.5:1. User interface parts such as button borders and icons need 3:1.

    What counts as large text?

    WCAG describes large text as at least 18 point (24 pixels) or 14 point (about 18.7 pixels) in bold. Anything smaller is normal text.

    Is a passing ratio enough to be accessible?

    No. Contrast is one part of accessibility. Font size, spacing, and whether information depends on colour alone matter too. This tool checks only the contrast of two flat colours.

    Which formula does it use?

    The WCAG 2 relative luminance formula. It does not use the newer APCA method, which gives different results.

    Related tools