Colour Contrast Checker

Colour Contrast Checker

Check the WCAG contrast ratio between a text colour and a background colour. See whether the pair passes AA and AAA for normal and large text.

21.00 : 1

Black text on white background

StandardNormal textLarge text
AA (4.5 / 3.0)PassPass
AAA (7.0 / 4.5)PassPass

Large sample text

Normal sample text — the quick brown fox jumps over the lazy dog.

About the Colour Contrast Checker

The Colour Contrast Checker measures how easy text is to read against its background. It calculates the WCAG contrast ratio, a number from 1 to 21, where 1 means the colours are identical and 21 means the strongest possible contrast, black on white.

WCAG sets two levels. AA is the usual target for readable text: a ratio of at least 4.5 for normal text and 3.0 for large text. AAA is stricter: 7.0 for normal text and 4.5 for large text. Large text means 18 point or larger, or 14 point bold or larger.

How to use

  1. Pick a text colour and a background colour using the colour pickers, or type hex values such as #000000.
  2. Click Check contrast.
  3. Read the ratio and the AA and AAA pass or fail results for normal and large text.
  4. Look at the live preview to judge how the combination reads.

Key features

  • Colour picker and hex text input for both colours
  • Exact WCAG contrast ratio to two decimal places
  • AA and AAA pass and fail results for normal and large text
  • Live preview with large and normal sample text
  • Swap colours with one click

Frequently asked questions

What is a good contrast ratio?

Aim for at least 4.5 to 1 for normal text, which passes WCAG AA. A ratio of 7 to 1 or higher passes AAA and is even easier to read.

What counts as large text?

Large text is 18 point or larger, or 14 point bold or larger. It needs less contrast: 3.0 for AA and 4.5 for AAA.

Which hex formats can I type?

Both the 3-digit form, such as #000, and the 6-digit form, such as #000000, are accepted. A leading # is optional.

Why does my pair fail AA?

The two colours are too close in brightness. Darken the text, lighten the background, or pick a more different colour for one of them.

Is my colour choice saved anywhere?

No. The check runs entirely in your browser and nothing is uploaded or stored.

Free to use, no signup needed. This tool runs entirely in your browser — your data never leaves your device.