Colour contrast checker

Check text contrast against WCAG AA and AAA. Preview two HEX colours and copy a passing foreground while keeping your background.

Use 3 or 6 hex digits, with or without #.

Contrast ratio4.48:1Fails AA for normal text

Suggested foreground#767676

Text preview

Original
#7777774.48:1
Suggested
#7676764.54:1

WCAG 2.2 text ratings

Text sizeAAAAA
NormalFail4.5:1Fail7:1
LargePass3:1Fail4.5:1

Ratings use the unrounded ratio. Large text starts at 24px regular or about 18.7px bold.

What contrast ratio does text need?

WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text. AAA raises those thresholds to 7:1 and 4.5:1. Large text is at least 18 points, or 14 points in bold.

Test the colours that actually appear together. A transparent text colour or an image behind the text can change the effective foreground or background. The ratings use the full ratio before it is rounded for display.

If a pair misses your target by a small margin, keep your background fixed and use the suggested passing foreground colour. Subtle shifts in lightness often pass AA or AAA while keeping the overall palette intact.

Common questions

What is the minimum WCAG contrast ratio for body text?

WCAG 2.2 Level AA requires a contrast ratio of at least 4.5:1 for normal body text and 3:1 for large text (18 pt or 14 pt bold). Level AAA raises those thresholds to 7:1 for normal text and 4.5:1 for large text.

Does this checker also cover icons and UI borders?

Yes. WCAG 2.2 requires at least 3:1 contrast for active user interface components and graphical objects, which matches the large-text threshold shown in the checker.