All / Developer

Contrast Checker

Check the contrast ratio of two hex colors against WCAG AA for body text.

AA for body text is 4.5:1. Large text can pass at 3:1; this page reports the body-text bar.

  1. 1Enter foreground and background hex.
  2. 2Read the ratio.
  3. 3Adjust until it passes.
Contrast
18.42:1

Passes WCAG AA for body text.

Sample sentence for this pair.

About this tool

Compare two hex colors and show the contrast ratio. The bar is WCAG AA at 4.5 to 1 for body text.

  • Large text can pass at 3 to 1; this page reports the body-text bar
  • The ratio is computed in the tab
  • P3 colors are not modeled; use sRGB hex

Questions

What is AA?
A common contrast bar for readable text on the web.
Does it use the network?
No. The contrast ratio is computed from the two colors you pick.
Share a pair?
The fields sync to the query string so you can copy the link.
P3 colors?
This page uses sRGB hex.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools