Contrast Checker

Fill Foreground and Background with six-digit hex values—defaults are black on white—then press Check. The result shows Ratio X.XX:1 with AA and AAA PASS or FAIL for normal text.

Updated 2026-08-05 · Design

Enter two hex colors and click Check.

About this tool

Relative luminance follows the WCAG sRGB formula. Contrast is (Llighter + 0.05) / (Ldarker + 0.05). Normal-text AA needs at least 4.5:1; AAA needs 7:1. Large-text thresholds are not scored here.

How to use

  1. Open the checker: Load the page with Foreground, Background, and Check.
  2. Enter foreground hex: Type the text color, such as #000000.
  3. Enter background hex: Type the surface color, such as #ffffff.
  4. Click Check: Read Ratio, AA, and AAA status for normal text in the result div.

Common use cases

Tips

FAQ

What does AA PASS mean?

The ratio is at least 4.5:1, meeting WCAG AA for normal text.

What about AAA?

AAA PASS requires at least 7:1 for normal text size.

Are large-text rules included?

No. This tool scores only the normal-text AA and AAA cutoffs.

Is black on white always 21:1?

Yes for pure #000000 on #ffffff under the WCAG luminance formula.

Related keywords

Related tools