CompleteToolkit

Color Contrast Checker

Check text/background contrast against WCAG AA and AAA — with a live preview of how it actually reads.

Contrast ratio

17.27:1

Large heading text (24px bold)

Normal body text at 14px — this is what most of your interface text looks like, and it has the strictest contrast requirement.

WCAG AA — normal text (4.5:1)Pass
WCAG AA — large text (3:1)Pass
WCAG AAA — normal text (7:1)Pass
WCAG AAA — large text (4.5:1)Pass

Large text = 18pt (24px) regular or 14pt (18.7px) bold and above. AA is the standard most laws and guidelines require; AAA is enhanced.

About this tool

Low-contrast text is the most common accessibility failure on the web — gray-on-white body copy that's stylish in a mockup and unreadable for the hundreds of millions of people with low vision, color-vision deficiency, or simply a phone screen in sunlight. The WCAG standard quantifies readability as a contrast ratio between text and background, from 1:1 (identical colors) to 21:1 (black on white), with defined thresholds for compliance.

This checker computes the exact ratio using the official WCAG relative-luminance formula and grades it against all four thresholds: AA for normal text (4.5:1) and large text (3:1), and the stricter AAA level (7:1 and 4.5:1). AA is the level referenced by most accessibility laws and procurement requirements worldwide — if you build client work, these badges are the ones auditors check.

The live preview renders real text in your actual color pair at both sizes, because a passing ratio you can verify with your own eyes builds more confidence than a number alone. Adjust either color with the picker or by typing a HEX value, and watch the ratio and badges update instantly. Accessible contrast isn't a design constraint — the highest-converting interfaces are almost always the most readable ones.

How to use the Color Contrast Checker

  1. 1Set your text color and background color — pick visually or type HEX values.
  2. 2Read the contrast ratio and the four pass/fail badges.
  3. 3Check the live preview — does the text genuinely read comfortably?
  4. 4Aim for AA minimum (4.5:1 for body text); adjust lightness of either color until it passes.

Frequently asked questions

What contrast ratio do I need?

WCAG AA — the level most laws and standards reference — requires 4.5:1 for normal text and 3:1 for large text (24px, or 18.7px bold). AAA raises these to 7:1 and 4.5:1 for enhanced accessibility.

What counts as 'large text'?

18pt (about 24px) at regular weight, or 14pt (about 18.7px) at bold. Large text has a lower threshold because bigger letterforms remain legible at lower contrast.

How is the contrast ratio calculated?

Using the WCAG relative-luminance formula: each color's luminance is computed from its RGB channels with gamma correction, then the ratio is (lighter + 0.05) ÷ (darker + 0.05). This tool implements the official formula exactly.

Does passing AA make my whole site accessible?

It satisfies the contrast criterion — one of many WCAG requirements. Keyboard navigation, alt text, focus indicators and semantic HTML are separate criteria. Contrast is, however, the most commonly failed one, so it's the right place to start.