Skip to main content

Free tool

Colour contrast checker

Check two colours, or a whole palette, against WCAG 2.2. If a pair fails, we show you the nearest colour that passes.

  • WCAG 2.2, AA and AAA
  • Text, large text and non-text
  • Runs in your browser

What do you want to check?

Check two colours

Type a hex code like #8A8F98, or an rgb() or hsl() value, or pick a colour. The result updates as you type.

Example: grey text on white. Enter your own colours.

Your colours


The result

Fails for normal text, 3.24 to 1

It passes AA for large text (24px, or 18.66px bold) and for icons and borders, which need 3:1.

The bar runs from 1:1 to 21:1. The marks are 3:1 for large text and icons, 4.5:1 for AA and 7:1 for AAA. This pair, 3.24 to 1, is past the 3 to 1 mark, short of 4.5 to 1.

Fix it

The nearest colours that pass: the same hue, made lighter or darker by as little as it takes.

Which colour should change?
  • New text colour#7177804.51 to 1Passes AA for normal text
  • New text colour#5559617.02 to 1Passes AA and AAA for all text

How it looks, and what it passes

Used forAAAAA
Normal textFailneeds 4.5 to 1Failneeds 7 to 1
Large text24px, or 18.66px boldPassneeds 3 to 1Failneeds 4.5 to 1
Icons, borders and graphicsParts of controls, and graphics you need to understandPassneeds 3 to 1No AAA level

Check a whole palette

Paste your brand colours and see which combinations pass before anyone designs with them. The example is our own palette.

Your colours

One per line, with a name if you like. Up to 12.

  • Ink #0B0C10
  • Cream #FAF9F6
  • Yellow #FFD84D
  • Coral #FF8A7A

The result

6 of 12 pairs pass AA for normal text.


Every pair, graded for normal text

Each row is a text colour. Each column is the background it sits on.

  • AAA 7:1 or more
  • AA 4.5:1 or more
  • Large only 3:1 or more
  • Fail under 3:1
Text colourOn InkOn CreamOn YellowOn Coral
Ink as text#0B0C10Same colourPasses AAA18.56 to 1Passes AAA14.13 to 1Passes AAA8.53 to 1
Cream as text#FAF9F6Passes AAA18.56 to 1Same colourFail1.31 to 1Fail2.17 to 1
Yellow as text#FFD84DPasses AAA14.13 to 1Fail1.31 to 1Same colourFail1.65 to 1
Coral as text#FF8A7APasses AAA8.53 to 1Fail2.17 to 1Fail1.65 to 1Same colour

Check one pair in detail

See how it looks, what it passes and the nearest colours that pass.

How it works

Contrast, explained

Everything here comes from WCAG 2.2. Each part links to the W3C page it is based on.

What you need to pass
WhatAA needsAAA needs
Normal text4.5:1 (1.4.3)7:1 (1.4.6)
Large text: 24px, or 18.66px bold, and above3:1 (1.4.3)4.5:1 (1.4.6)
Parts of controls, and graphics you need to understand3:1 (1.4.11)No AAA level
Logos, and incidental or inactive textNo requirementNo requirement

The three W3C pages this checker is built on:Understanding 1.4.3 Contrast (Minimum), W3C (opens in new tab)Understanding 1.4.6 Contrast (Enhanced), W3C (opens in new tab)Understanding 1.4.11 Non-text Contrast, W3C (opens in new tab)

Questions about contrast

Usually not. It often just cannot be used for small text on white. A darker shade for text, with the brand colour kept for backgrounds and large shapes, is the normal fix.

Fixed price before any work starts

Want a person to check the rest?

Contrast is one of the 55 things we test at Level A and AA. A quick scan covers your 5 most important templates in 5 working days, for £495 plus VAT.