All tools

Colour Contrast Checker

Choose your text and background colours to check whether they have enough contrast for reading.

Your heading

This is how your paragraph text looks with these two colours.

A smaller label or caption

Works for small text and headings

This pair meets the minimum text-contrast requirement for body copy, links, buttons and headings.

Colour contrast is one part of readability. Check font size and spacing on the real page too.

Contrast ratio and accessibility details

Contrast ratio: 16.60:1

WCAG text-contrast checks
RequirementMinimumResult
AA small text4.5:1Pass
AA large text3:1Pass
AAA small text7:1Pass
AAA large text4.5:1Pass

AA is the minimum level shown in the main result. AAA is a higher contrast target.

Choose the threshold for the text you are using

A pair can pass for a heading and fail for a form label. Use the normal-text result for body copy, navigation and small buttons; a large heading in the preview does not make those elements large text.

Text contrast targets
Text sizeAAAAA
Normal4.5:17:1
Large3:14.5:1

WCAG large text is at least 18 pt (24 CSS px), or 14 pt (about 18.7 CSS px) when bold. Check the WCAG contrast definition before using the lower threshold.

If the pair fails

Try a darker text colour or a lighter background, then recheck the label at its actual size. Swapping the two colours changes the sample but not the contrast ratio.

If the pair passes

Test the real page too. This calculator compares two solid hex colours; images, gradients, transparency, hover states and focus indicators need their own review.