Skip to content
AI Web Toolbox

Images & colour

How to show contrast and check readability

Use Contrast Checker when you need a quick way to work through this task. Check if two colors meet WCAG accessibility contrast guidelines. This guide walks through a small example and the checks to make before you use the result.

Contrast decides whether people can read your text in sunlight, on a cheap screen or with reduced vision. A ratio from 1:1 to 21:1 compares the relative brightness of two solid colors, which makes it easy to test a palette before it reaches production.

How to use the tool

  1. Set “Text color” and “Background color” with the two color pickers.
  2. Read the ratio and compare it with 4.5:1 for AA or 7:1 for AAA normal text.
  3. For headings of at least 24 px, or 18.66 px bold, compare with 3:1 and 4.5:1 yourself.
Open Contrast Checker

Try a small example

Example input or settings

#767676 on #FFFFFF = 4.54:1; #777777 on #FFFFFF = 4.48:1

What to check

The pass labels apply the normal-text thresholds only, so judge large text from the number. The ratio is rounded to two decimals, so treat borderline results with caution and pick a safer shade. Transparency, gradients, photographs behind text, font weight and focus indicators are not evaluated.

Does gray text on white pass WCAG AA?

It depends on one shade. #777777 on #FFFFFF scores 4.48:1 and fails AA for normal text, while the slightly darker #767676 reaches 4.54:1 and passes. For AAA you need 7:1, which #595959 meets exactly. #333333 on white gives 12.63:1.

When this is useful

For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.

Before you rely on the result

Preview at the size and on the background where the result will appear. Check file format, legibility and accessibility.

Browse all guides