Color Contrast Checker

Calculate the WCAG contrast ratio for two colors and check AA and AAA text thresholds.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in text hex color, background hex color.
  2. Select “Check contrast” to see the result.

Worked example

Input
White text on black
Output
Contrast ratio: 21:1
AA normal text: Pass
AA large text: Pass
AAA normal text: Pass
AAA large text: Pass

Frequently asked questions

What contrast ratio does WCAG AA require?

AA requires 4.5:1 for ordinary text and 3:1 for large text. The tool checks the unrounded ratio against each threshold.