Tithi Mondal

Free tool

Colour contrast checker

Enter a text colour and a background colour. You get the contrast ratio, a pass or fail for normal and large text, and a nearby colour that passes if yours does not.

Contrast ratio

4.83 to 1

Large heading text

Normal body text looks like this sentence at 16 pixels.

  • Normal text (needs 4.5 to 1)Passes
  • Large text and icons (needs 3 to 1)Passes
  • Normal text, stricter level (needs 7 to 1)Fails

What the numbers mean

The contrast ratio compares how light the text is with how light the background is. It runs from 1 to 1, which is no difference at all, up to 21 to 1, which is pure black on pure white.

The widely used accessibility guidance asks for at least 4.5 to 1 for normal body text and at least 3 to 1 for large text, which means roughly 24 pixels and above, or 19 pixels and above in bold. A stricter level asks for 7 to 1 for normal text. Buttons, icons and form borders that people must see should reach at least 3 to 1 against what is around them.

Why it matters on a real phone

Light grey text on white looks elegant on a designer's large screen. On a mid-range phone, outdoors, at low brightness, it disappears. Most people will not complain. They will simply stop reading.

Checking contrast takes a few seconds and prevents one of the most common reasons a website or app feels hard to use. Check body text, placeholder text inside form fields, text on coloured buttons, and text placed over photos.

Questions about this tool

What is a good contrast ratio for text?

Aim for at least 4.5 to 1 for normal body text and at least 3 to 1 for large headings. If your audience includes older readers or people using phones outdoors, 7 to 1 for body text is a safer target.

Does brand colour have to change if it fails?

Not always. Keep the brand colour for large shapes, headings and buttons with dark or white text that passes, and use a darker shade of the same colour for small text. A designer usually defines two or three shades of each brand colour for this reason.

Is passing the contrast check enough for accessibility?

No. Contrast is one part. Text size, spacing, tap target size, clear labels and keyboard access also matter. A contrast check is a quick first step, not a full review.

Can I check text on top of a photo?

Pick the lightest and darkest parts of the photo behind the text and test both. If either fails, add a dark or light overlay behind the text, or move the text off the photo.

Read more

More free tools

Need this done properly for your product?

Tithi designs apps, websites and brand graphics with these details handled for you. I reply to every enquiry within 24 hours.