Digital & Developer

Colour contrast checker

Test two hex colours against WCAG text contrast ratios.

Free to use No account needed Works in your browser

LET’S GET IT DONE

Your workspace

Text colour
Background colour
Make every word readable.

This is a sample of normal-sized text against your chosen background.

14.79:1contrast ratio
Pass: AA normal textPass: AAA normal textPass: AA large textPass: AAA large text
Uses the WCAG sRGB contrast calculation. Large text means at least 24 px regular or about 18.7 px bold. Solid opaque colours only; this is not a whole-page accessibility audit.Read the WCAG contrast guidance ↗

MAKE IT USEFUL

A little context goes a long way.

Calculate the contrast between two solid sRGB hex colours and check the WCAG AA and AAA text thresholds.

01 / USE IT FOR

When it is useful

Compare text and background colours for a button, article or interface.

02 / GOOD TO KNOW

Limits to keep in mind

This checks solid opaque colours only. Background images, transparency, font rendering and other accessibility requirements are not assessed. A rounded ratio can look like a threshold even when the unrounded value falls just below it.

Your content stays yours.

The information you enter here is processed within your browser by this tool, without an account. Do not rely on unverified results for important legal, financial or business decisions.

Read our privacy information →

TRY AN EXAMPLE

Compare a clear pass with a borderline grey

Check a text colour against a solid background, then read the separate normal-text and large-text results.

Start with this

Text: #000000
Background: #ffffff

Then try text: #777777

What to expect

Black on white: 21.00:1
#777777 on white: 4.48:1
The grey fails AA normal text.

Try it in the tool

  1. Set black text on a white background and read the contrast ratio.
  2. Change the text to #777777 while keeping white as the background.
  3. Compare the AA normal-text result rather than judging the colours by eye.

A common mistake

A rounded ratio near 4.5 does not turn a failure into a pass. This tool checks two opaque colours; it cannot assess a whole page, a photograph behind text or every accessibility requirement.

Try this example above ↑