Skip to content
utilnest

Contrast checker

Make sure your text is readable for everyone, and fix failing colour pairs in one click.

  • Works in your browser
  • No sign-up
  • Free to use

How to use Contrast checker

  1. 1

    Enter the text colour and the background colour, as HEX, RGB, HSL or a colour name, or pick them with the swatches.

  2. 2

    Read the contrast ratio and whether it passes WCAG AA and AAA for normal text, large text and interface parts.

  3. 3

    If it fails, press "Use it" on one of the suggested colours, the closest ones that pass.

What this tool does

The contrast checker measures how distinguishable two colours are, using the WCAG 2 formula that accessibility audits and laws like the European Accessibility Act refer to. Low-contrast text is hard to read for people with low vision or colour blindness, and for everyone on a phone in sunlight.

Features

  • WCAG 2 contrast ratio from 1:1 to 21:1, rounded down as the standard requires.
  • Five checks: AA and AAA for normal text, AA and AAA for large text, and 3:1 for interface parts and icons.
  • Live preview with headings, body text, small print and buttons in your colours.
  • One-click fixes that suggest the closest passing text or background colour for AA and AAA.
  • Any colour format, including transparency, plus a swap button.

Limits

  • The ratio is WCAG 2's. The draft WCAG 3 contrast method (APCA) gives different numbers and isn't a legal requirement yet.
  • Contrast is only part of readability. Font size, weight and spacing matter too, and text on images or gradients must be checked against its lightest and darkest areas.

Where your colours are processed

This tool works in your browser: the colours are checked on your own device, so nothing is sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.

Frequently asked questions

What contrast ratio do I need?

WCAG 2 level AA, the usual legal and industry target, asks for at least 4.5:1 for normal text and 3:1 for large text and for interface parts such as button borders and icons. Level AAA asks for 7:1 for normal text and 4.5:1 for large text.

What counts as large text?

In WCAG, large text is at least 18 point (24 CSS pixels) in regular weight, or at least 14 point (about 18.7 CSS pixels) in bold. Everything smaller is normal text.

How are the suggested colours chosen?

The tool keeps the hue and colourfulness of your colour and only makes it lighter or darker, step by step in the OKLCH colour space, until the pair passes. It shows the passing colour closest to your original, for both the text and the background, so you can keep your design's look.

Why is my 4.49:1 pair marked as failing?

WCAG treats the thresholds as exact minimums, and the ratio must not be rounded up. 4.49:1 is below 4.5:1, so it fails AA for normal text. The tool rounds the ratio down when it shows it.

Does it handle transparent colours?

Yes. A text colour with transparency is blended over the background before the ratio is measured, as a browser would draw it.

Was this tool helpful?