Color Contrast Checker (WCAG)

Check whether your text and background colors are readable enough for WCAG AA and AAA, and get a fix if they are not.

FreeNo sign-upPrivate — runs in your browser
—contrast ratio

Large text: The quick brown fox

Normal text: Good contrast makes your content readable for everyone, including people with low vision and anyone using a phone in bright sunlight.

Icon ★

How to use the Color Contrast Checker

  1. Pick two colorsEnter the text color and the background color as HEX, rgb() or a color name, or use the color pickers.
  2. Read the resultSee the contrast ratio and whether it passes WCAG AA and AAA for normal text, large text and UI elements, with a live preview.
  3. Apply a fixIf it fails, click a suggested color: the closest darker or lighter shade that passes.

Example

Grey #6B7280 on white is 4.83:1: it passes AA for normal text but fails AAA (7:1).

The suggested fix for AAA is a darker grey such as #545964 (7.02:1), which keeps the same hue.

Frequently asked questions

What contrast ratio do I need?

WCAG 2.2 level AA needs 4.5:1 for normal text and 3:1 for large text (24 px, or 18.66 px bold) and for icons and input borders. Level AAA needs 7:1 for normal text and 4.5:1 for large text.

How is the ratio calculated?

It compares the relative luminance of the two colors: (lighter + 0.05) ÷ (darker + 0.05). It ranges from 1:1 (same color) to 21:1 (black on white). Results are rounded down so a pass is a real pass.

Does this cover color blindness?

Contrast helps everyone, but it does not show how colors look to people with color vision deficiency. Use our Color Blindness Simulator to check that too.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester