WCAG Contrast Checker

Check text and background colours against WCAG AA and AAA.

DesignFreeNo sign-up
Loading tool…

Runs entirely in your browser — nothing you enter is uploaded or stored on a server.

How to use it

Enter a text and a background colour to get the WCAG 2.2 contrast ratio and a pass or fail for normal text, large text and UI components, with a live preview.

  1. Set the text colour and the background colour.
  2. Read the ratio and the AA / AAA results.
  3. Use the suggestion to nudge a failing colour until it passes.
DesignersDevelopers

Questions

What ratio do I need?

WCAG AA asks for 4.5:1 for body text and 3:1 for large text (24px, or 18.66px bold) and interface components. AAA asks for 7:1 and 4.5:1.

Does transparency count?

This checker uses solid colours. Blend a semi-transparent colour over its background first for an accurate result.