Color contrast checker

Check WCAG AA and AAA contrast ratios for any text and background pair. Free, private and offline in your browser — files never leave your device.

Design & color100% on deviceFree, no accountWorks offline

About this tool

Check any text and background colour pair against the WCAG 2.1 contrast ratio, with AA and AAA verdicts for normal and large text.

How it works

  1. Pick the text colour and the background colour, or press Swap colours to reverse them.
  2. Read the contrast ratio and the pass/fail table.
  3. Adjust one colour until the combination passes the level you need.

Frequently asked questions

What ratio counts as accessible?

4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text at AA — large means 18 pt regular or 14 pt bold.

Which formula is used?

The WCAG 2.1 relative luminance formula, the same one browser audit tools and design systems use.