Free web design tools

Color Contrast Checker for WCAG and ADA

Enter the color of your text and the color behind it. You will see the contrast ratio, whether it passes the WCAG standard, and the nearest color that passes if it does not.

Free to use. No sign-up. Runs in your browser.

This checker needs JavaScript to do the math. With it switched off, the guide below still explains the ratios you need and how to fix a pair that fails.

Your colors

Color codes are six characters after a # sign. Three character codes such as #FFF work too.

Large headline text

Normal body text, the size most of a web page is set in.

A button

5.68 to 1 contrast ratio

  • Normal text, level AA (4.5 to 1)
  • Large text, level AA (3 to 1)
  • Buttons, icons and borders (3 to 1)
  • Normal text, level AAA (7 to 1)
  • Large text, level AAA (4.5 to 1)

Failing in more places than one? Ask us for an accessibility review.

What the contrast ratio tells you

Contrast ratio is a measure of how different two colors are in brightness, from 1 to 1 (the same color) up to 21 to 1 (black on white). The higher the number, the easier the text is to read, for everyone, and most of all for the roughly one in twelve men with some form of color blindness, for anyone over fifty, and for anyone reading a phone outdoors.

The Web Content Accessibility Guidelines, known as WCAG, set the minimums. Level AA is the one that matters in practice: it is the level named in most accessibility laws, settlements and demand letters. It asks for 4.5 to 1 for ordinary text and 3 to 1 for large text and for the parts of the page people have to see to use it, such as button outlines and form borders.

The pairs that fail most often

  • Light gray text on white. It looks refined on a designer's monitor and disappears on a phone in daylight. Anything lighter than #767676 on white fails.
  • White text on a brand color. Oranges, yellows, light greens and sky blues almost never carry white text. Our own copper, #A56731, only just passes at 4.6 to 1, which is why we keep copper text at 15 pixels or larger.
  • Text over a photograph. The ratio changes with every part of the picture. Put a dark overlay between the photo and the words and check the text against the overlay.
  • Placeholder text in forms. The pale hint inside an empty field is text too, and it is usually the lightest thing on the page.

How to fix a failing pair

Darken the text before you touch the background. A small change usually does it, and the tool suggests the nearest shade that passes so the color still reads as yours. Keep the original for places where contrast rules do not apply: your logo, decorative shapes and large headlines where it passes at 3 to 1.

Then write the passing shade into your brand guide, so the next flyer, sign and web page use it too. If you do not have a guide, that is part of our branding and identity work.

Contrast is one check among many

Passing here does not make a site ADA compliant. It makes it pass one of about fifty criteria, though it is the one that fails on more home pages than any other. For a wider read, the free website grader includes an accessibility score, our guide to ADA compliance for small business websites explains what the law expects, and our ADA compliance service covers the audit and the fixes. We are in Fishers and work with businesses anywhere.

Frequently Asked Questions

What the ratio means and what it does not cover.

Level AA, the standard most websites are held to, asks for 4.5 to 1 for normal text and 3 to 1 for large text (about 24 pixels, or 19 pixels bold). Level AAA asks for 7 to 1 and 4.5 to 1. Buttons, icons and form borders need 3 to 1 against what is next to them.

No. Contrast is one of about fifty WCAG criteria. A site also needs text alternatives for images, keyboard access, clear form labels and more. This check tells you about one of the most common failures, and one of the easiest to fix. Our ADA compliance service covers the rest.

Your brand guide or your website's theme settings will list them as six character codes such as #626B3E. If you have neither, the eyedropper in the color box on this page can pick a color from anywhere on your screen in most browsers.

Text at 24 pixels or larger, or 18.66 pixels and bold. Headlines usually qualify. Body copy, captions, menu links and the text on most buttons do not.

No. Logos are exempt. Keep the brand color for the logo and for large headlines where it passes, and use the darker suggestion from this tool for body text and buttons.

Worried about accessibility?

Contrast is where most reviews start. We audit the whole site against WCAG and fix what we find.

Tell us about your website and we will send a free estimate.

5.0 from 12 reviews on Google

Services (optional)
Choose services
Services you are interested in
Best way to reach you (optional)
Choose one or more
Preferred method of contact

Free and no obligation, with a reply in under 24 hours.