Skip to content

Color contrast checker

Pick a text color and a background color to see the contrast ratio and whether it passes WCAG AA and AAA.
If it fails, tap once for the closest color that passes. Free, no sign-up.

Textgunmetal
Backgroundbeige

Large text looks like this

Body text at 16px. Is this easy to read in bright light?

ButtonIcon outline
Contrast ratio12.92:1

Great: easy to read for everyone.

  • Normal text AABody text and labels. Needs 4.5:1Pass
  • Large text AA24px, or 18.66px bold. Needs 3:1Pass
  • Normal text AAAThe strictest level. Needs 7:1Pass
  • Large text AAABig headings, strict. Needs 4.5:1Pass

About the text color · About the background · Build a palette from this pair · Pick colors from a photo

Train your eye

How to check color contrast

  1. Set the text color. Tap the swatch to open the color picker, or type a hex code like #1F2937.
  2. Set the background color. Use Swap if you picked them the wrong way around.
  3. Read the ratio. 4.5:1 or more passes AA for normal text, 3:1 for large text. 7:1 passes AAA.
  4. Fix it in one tap. If it fails, pick the suggested text or background color. Only the lightness changes, so your color keeps its hue.

The ratio uses the WCAG 2 formula, which compares the relative luminance (how much light each color gives off) of the two colors, from 1:1 (no contrast) to 21:1 (black on white).

More

More color tests

Questions

What contrast ratio passes WCAG AA?

For normal text, WCAG AA needs a contrast ratio of at least 4.5 to 1 between the text and its background. Large text, meaning 24px and up or 18.66px and up in bold, needs at least 3 to 1. Icons and the edges of buttons and form fields also need 3 to 1.

What is the difference between AA and AAA?

AA is the level most websites and apps aim for, and the one most laws and guidelines point to. AAA is stricter: 7 to 1 for normal text and 4.5 to 1 for large text. AAA is great for long reading and for people with low vision, but it is hard to hit with every brand color.

What counts as large text?

WCAG counts text as large when it is at least 18 points (24 CSS pixels) in regular weight, or at least 14 points (about 18.66 CSS pixels) in bold. Large text is easier to read, so it can pass with a lower ratio.

Does this check for color blindness?

Not directly. The contrast ratio only compares how light or dark the two colors are, which helps everyone, including people with color blindness. It does not check whether two hues look the same to someone who is color blind, so never use color alone to show meaning. Try the free color blind test.