Design & colour

Colour contrast checker

Check text and background contrast against WCAG ratios.

Colour contrast checker
Esc to restore

Your inputs

Preview your text

Large text starts at 24px regular or 18⅔px bold (use 19px for whole-pixel sizes). There is no single font size that makes every colour pair pass.

Results update as you change the colours or preview settings.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Calculates WCAG relative luminance and contrast ratio for opaque sRGB colours. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1 respectively. Large means at least 18 pt regular or 14 pt bold. The preview settings do not change the ratio or the complete AA/AAA checks. Colour suggestions adjust one colour towards black or white and are verified after rounding to HEX. Passing contrast alone does not establish full accessibility.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Text colour (HEX)
#365bd5
Background colour (HEX)
#ffffff
Text size
16px
Text weight
Regular
Contrast target
AA · standard contrast

Example result

Contrast ratio
5.81:1
AA normal text
Pass
AA large text
Pass
AAA normal text
Fail
AAA large text
Pass

Pass/fail uses the full-precision ratio, before display rounding.