Free tool

Colour contrast checker

Pick a text colour and a background colour to see their contrast ratio straight away, and whether the pair passes WCAG 2.1 levels AA and AAA. You can share the result with a link.

Text colour (foreground)

#RGB or #RRGGBB format; the # is optional. #RRGGBBAA sets the opacity too. A 3-digit code and the opacity apply when you press Enter or leave the field.

Background colour

#RGB or #RRGGBB format; the # is optional. A 3-digit code applies when you press Enter or leave the field.

Contrast ratio

5.23:1

WCAG 2.1 results

Normal text

Success criteria 1.4.3 (AA) and 1.4.6 (AAA).

The right contrast makes text readable for everyone.

  • WCAG AA (at least 4.5:1)Pass
  • WCAG AAA (at least 7:1)Fail

Large text

At least 24px, or 18.66px bold. Success criteria 1.4.3 (AA) and 1.4.6 (AAA).

Sample large text

  • WCAG AA (at least 3:1)Pass
  • WCAG AAA (at least 4.5:1)Pass

Graphical objects and UI components

Icons, field borders and other interface elements. Success criterion 1.4.11 (AA).

Text field
  • WCAG AA (at least 3:1)Pass

The text colour closest to yours that reaches level AAA (7:1) on this background is #0044E5.

How to read the result

Low contrast is one of the most common accessibility problems on websites, and one of the easiest to fix.

What the contrast ratio is

  • It compares the relative luminance of the two colours, from 1:1 (no difference) to 21:1 (black on white).
  • The value is never rounded up: 4.497:1 is shown as 4.49:1 and does not meet the 4.5:1 threshold.
  • If the text is semi-transparent, what counts is the colour it produces on the background.

The WCAG 2.1 thresholds

  • Normal text: at least 4.5:1 for level AA, 7:1 for AAA.
  • Large text: at least 3:1 for level AA, 4.5:1 for AAA.
  • Icons, borders and interface components: at least 3:1 for level AA.

If a pair fails

  • Widen the difference in lightness between text and background with the lightness slider: the hue stays the same.
  • Use the suggested colour, the closest to yours that meets the threshold.
  • Colour must not be the only way information is conveyed: pair it with text or icons.

Contrast is only the start

A free analysis of a page of your website checks its contrast along with many other WCAG criteria, and tells you where to begin.

Start the free analysis

Contact us

Leave us your details

One of our consultants will contact you as soon as possible