Website & SEO

Color Picker & Contrast Checker

Is your text readable on its background? Pick two colors to see the contrast ratio and whether it passes WCAG, and get a fix if it does not.

Sample headingThis is how normal body text looks with these two colors. Small text needs the most contrast.
Contrast ratio—

CheckNeedsResult
Normal text, AA4.5 : 1—
Large text, AA3 : 1—
Normal text, AAA7 : 1—
Large text, AAA4.5 : 1—
Buttons, icons, borders3 : 1—


Your colors stay on your device. The check is plain math done in your browser, and nothing is sent anywhere.

How to use it

  1. Pick or type your text color and your background color.
  2. Read the ratio and the pass or fail for each WCAG level.
  3. If it fails, press “Fix the text color for me” to get the closest color that passes.

How the ratio is worked out

Each color gets a brightness value called relative luminance, which follows the WCAG formula and treats green as brighter to the eye than blue. The ratio is the lighter color’s brightness plus 0.05, divided by the darker color’s brightness plus 0.05. It runs from 1 : 1 (no contrast) to 21 : 1 (black on white).

What the levels mean

  • AA is the usual target. Normal text needs 4.5 : 1. Large text needs 3 : 1.
  • AAA is stricter: 7 : 1 for normal text and 4.5 : 1 for large text.
  • Large text means 18 pt (24 px) or bigger, or 14 pt (about 18.7 px) bold or bigger.
  • Buttons, icons and borders need 3 : 1 against what is next to them.

A common surprise

The popular grey #777777 on white looks fine but scores 4.48 : 1, which fails AA by a hair. #767676 is the lightest grey that passes on white. This tool compares the real number and does not round up, so a 4.48 never shows as 4.5.

Tested, not guessed

Every number below comes from running this tool, not from a guess.

Example

Text color #777777 on a white background:

#777777 on #ffffff

The ratio is 4.48 : 1, which fails AA for normal text (it needs 4.5). The lightest grey that passes on white is #767676, at 4.54 : 1. Black on white is 21 : 1, the maximum.

Frequently asked questions

Does a pass mean my page is accessible?

No. Contrast is one part. You also need readable sizes, clear focus outlines, text alternatives for images and more. But low contrast is one of the most common problems, and it is easy to fix.

Does it work for text on images?

Not directly. Pick the color of the part of the image behind the text that is hardest to read, and check against that.

What color formats can I type?

Hex such as #fff or #1a2b3c, and rgb values such as rgb(26, 43, 60) or just 26 43 60.

Is anything sent to a server?

No. Everything happens in your browser.

Scroll to Top