Color Contrast Checker

Check whether your text and background colors pass WCAG 2.1 AA and AAA. See the contrast ratio, live preview at three text sizes and pass/fail status for normal text, large text and UI components. Swap foreground and background with one click.

How to use

1

Enter the foreground color

Type a HEX or RGB value for your text color.

2

Enter the background color

Type a HEX or RGB value for the background.

3

Read the contrast ratio

See the ratio and whether it passes AA, AAA or fails.

4

Check the live preview

See how the text looks at different sizes on that background.

Foreground (text)
Background
Contrast ratio
17.40:1
Normal text
AAA
AA 4.5:1 · AAA 7:1
Large text
AAA
AA 3:1 · AAA 4.5:1
UI components
AAA
AA 3:1

Live preview

Large heading at 24px

Normal body text at 16px — this is the standard reading size.

Small caption text at 14px

Remember: WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively. Large text is 18pt+ or 14pt bold.

Features

WCAG 2.1 AA and AAA

Check compliance for normal text, large text and UI components.

Live preview

See the color pair at three text sizes in real time.

Pass/fail status

Clear indicators for AA and AAA at each text size.

Swap foreground and background

Reverse the two colors with one click.

Common use cases

  • Check if your text color is accessible
  • Design a WCAG-compliant color palette
  • Verify button contrast for UI components
  • Audit a website for accessibility issues

Frequently Asked Questions

Related tools