Colour Contrast Checker

Check text/background contrast against WCAG accessibility rules.

Also called: color contrast checker, WCAG contrast checker, accessibility contrast ratio.

FreeNo sign-upRuns in your browser
DESIGN

Colour Contrast Checker

Check text/background contrast against WCAG accessibility rules.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Colour Contrast Checker (11 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Colour Contrast Checker

Enter a text colour and a background colour to get their contrast ratio and whether they pass WCAG AA and AAA for normal and large text.

AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

WCAG contrast ratios and accessibility thresholds

The checker compares a text colour with its background and reports the contrast ratio. Under WCAG, the AA minimum is 4.5:1 for normal text and 3:1 for large text. The large-text threshold is at least 18 pt regular or 14 pt bold; AAA uses stricter contrast requirements.

A ratio is based on the relative luminance of the foreground and background colours. A colour pair that looks readable on one monitor may be difficult for someone else to read, so use the numeric result rather than relying only on visual judgement.

This is a colour-pair check, not a complete accessibility audit. Also check focus indicators, text resizing, keyboard access, meaningful labels, images of text and contrast in every interactive state. The U.S. Section 508 programme also points to manual contrast testing as part of accessibility checks.

How to use the Colour Contrast Checker

  1. Add your inputFill in text colour and background colour. An example is already filled in, so you can press Run tool first to see how it works.
  2. Press Run toolThe result appears right under the button.
  3. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Colour Contrast Checker gives for it (produced by the tool itself, not typed by hand).

Text colour
#1a1a1a
Background colour
#ffffff

Result:

Contrast ratio: 17.40 : 1

WCAG AA  – normal text (4.5): PASS
WCAG AA  – large text (3): PASS
WCAG AAA – normal text (7): PASS
WCAG AAA – large text (4.5): PASS
UI components (3): PASS

Good to know

What you need
You type or choose: Text colour, Background colour
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

What counts as large text?

About 24 px regular or 18.7 px bold and above.

Which colour formats work?

HEX like #1a1a1a and RGB.

More tools in Design

See all Design tools