checker

Color Contrast Checker (WCAG)

Check foreground and background color contrast against WCAG 2.1 AA and AAA accessibility standards.

color contrast checkerwcag contrastaccessibility checkercontrast ratio tool

Foreground

Background

Large text preview (24px+)

Normal text preview — The quick brown fox jumps over the lazy dog. 0123456789

Contrast ratio

21 : 1

AA Normal

≥ 4.5 : 1

AA Large

≥ 3 : 1

AAA Normal

≥ 7 : 1

AAA Large

≥ 4.5 : 1

How to use

How to check color contrast for accessibility compliance

  1. 1 Pick a foreground (text) color using the color picker or by entering a HEX value directly.
  2. 2 Pick a background color the same way. The live preview updates instantly so you can see how the combination looks.
  3. 3 Read the contrast ratio displayed between the two colors. WCAG 2.1 requires at least 4.5:1 for normal text and 3:1 for large text at the AA level.
  4. 4 Check the four result badges — AA Normal, AA Large, AAA Normal, and AAA Large — to see which compliance levels your color pair meets.
  5. 5 Use the swap button to quickly reverse foreground and background, then adjust colors until the pair passes the level you need.

Color contrast is one of the most important factors in web accessibility. When text does not stand out enough from its background, users with low vision, color blindness, or screen glare struggle to read content. The Web Content Accessibility Guidelines (WCAG) define specific contrast ratios that help ensure text remains readable for the widest possible audience. This checker calculates those ratios instantly so designers and developers can verify color choices before shipping a design.

WCAG defines two conformance levels that matter for contrast. Level AA is the baseline that most websites and applications should meet. It requires a contrast ratio of at least 4.5:1 for normal-sized text and 3:1 for large text (18px bold or 24px regular). Level AAA is the enhanced standard, requiring 7:1 for normal text and 4.5:1 for large text. Meeting AAA is not always practical for every design, but it provides the best readability for people with moderate vision loss.

The tool uses the WCAG 2.1 algorithm, which converts sRGB color values to relative luminance and calculates the ratio between the lighter and darker color. This is the same formula used by professional accessibility auditing tools, so the results you see here match what an accessibility audit would report. Use it during design reviews, component development, or content updates to catch contrast issues early and avoid costly rework after launch.

More Checker tools

Related tools

You might also like