Contrast Checker

Check text and background colors against WCAG AA and AAA, see a live preview, and get a nearest passing fix if they fall short.

Text color
Background color

Large heading text

The quick brown fox jumps over the lazy dog. Normal body copy at 16px.

- : 1

Why contrast matters

Low-contrast text is one of the most common accessibility failures on the web. People with low vision, colour blindness, or anyone reading on a sunlit phone screen all struggle when text sits too close to its background in brightness. The Web Content Accessibility Guidelines (WCAG) turn "readable enough" into a measurable number: the contrast ratio between the text and background luminance.

The thresholds you need to hit

LevelNormal textLarge text
AA (minimum)4.5 : 13 : 1
AAA (enhanced)7 : 14.5 : 1

"Large" means 24px (18pt) or 18.66px (14pt) bold and above. AA is the level most laws and procurement rules reference; AAA is a stretch goal that is not always achievable for every element, and WCAG itself does not require full AAA conformance across a whole page.

Fixing a failing pair

When a combination falls short, you usually only need to nudge the lighter or darker color a little further apart. This checker suggests the nearest passing text color by walking the lightness up or down until it clears 4.5:1, so you keep the same hue and feel. Pin down your exact values first with the color picker or the HEX to RGB converter, and if you need a whole accessible range from one brand color, generate it with the shade generator.

Frequently asked questions

What is a good contrast ratio?
WCAG asks for at least 4.5:1 between normal text and its background, and 3:1 for large text (18pt / 24px, or 14pt / 18.66px bold). To reach the stricter AAA level you need 7:1 for normal text and 4.5:1 for large text. The maximum possible ratio is 21:1 (pure black on pure white).
What counts as large text?
Large text is 24px (18pt) or bigger, or 18.66px (14pt) or bigger when bold. Because bigger, heavier letters are easier to read, they are allowed a lower contrast threshold of 3:1 for AA and 4.5:1 for AAA.
How is the contrast ratio calculated?
You compute the relative luminance of each color using the WCAG formula, which weights the linearised red, green and blue channels. The ratio is then (lighter + 0.05) divided by (darker + 0.05), giving a value between 1:1 and 21:1.
Does contrast apply to icons and buttons too?
Yes. WCAG 1.4.11 requires a 3:1 ratio for meaningful graphics and user interface components like icons, input borders and focus indicators, even though that is a separate rule from the text thresholds above.