Skip to content

Design tool

Color Contrast Checker

Compare a text color with a background color and see if the contrast passes WCAG AA and AAA.

Stays in your browser Processed in your browser. The text is not sent to our servers.

Live Updates as you change the fields — no need to press a button.

Needs at least 4.5:1 contrast. Use for normal paragraphs and UI text. Hex or rgb() both work. Needs at least 3:1 contrast. Large text is 18pt, or 14pt and bold. Hex or rgb() both work.

Result updates here as you change the fields.

How to check color contrast (WCAG)

  1. Set the text color and the background with the pickers, or type a hex or rgb() value.
  2. Choose body text or large text. Swap the two colors if you want to try the pair the other way.
  3. Read the sample sentence and the ratio. The line under the ratio says whether that size passes WCAG AA and AAA.

This color contrast checker compares a text color with its background and reports the ratio against WCAG. Body text needs 4.5:1 for AA and 7:1 for AAA. Large text, 18pt or 14pt and bold, needs 3:1 for AA and 4.5:1 for AAA. The sample sentence shows the pair as a reader will see it.

How to check color contrast before you ship →

Back to Design tools

Frequently asked questions

What is a WCAG color contrast checker?

It measures the contrast ratio between foreground and background colors and compares it with WCAG AA and AAA thresholds so you can tell whether text stays readable.

What ratio do I need for AA and AAA?

Normal body text needs 4.5:1 for AA and 7:1 for AAA. Large text needs 3:1 for AA and 4.5:1 for AAA.

What does Pass mean?

The contrast ratio meets the number written beside that row. Fail means it is below that number.

Does this check colour contrast for images?

No. Paste solid colors as hex or rgb(). Text on a photograph needs a separate check against the actual background behind the letters.

Are the colors uploaded?

No. The contrast check runs in your browser.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.