Color Contrast Checker (WCAG)

Find out whether your text is readable enough for people with low vision. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
HEX (#fff or #1a2b3c), rgb(…) or hsl(…).

How to use it

  1. Enter the text color and the background color.
  2. Read the contrast ratio.
  3. Check which WCAG levels it passes.

How it works

Each color’s relative luminance is calculated from its sRGB values using the WCAG 2.x formula. The contrast ratio is (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the lighter color. WCAG 2.x asks for at least 4.5:1 for normal text and 3:1 for large text at level AA, 7:1 and 4.5:1 at level AAA, and 3:1 for icons and interface parts. Large text means at least 24 px, or about 18.66 px if bold.

The ratio is shown cut off after two decimals, never rounded up, so a ratio just under a threshold is not displayed as a pass.

Examples

  • #767676 on white is about 4.54:1, the lightest gray that passes AA for normal text on a white background. Black on white is 21:1.

Limitations

  • Colors with transparency are not supported: enter the final, blended color.
  • A passing ratio does not guarantee readability, because font size, weight, spacing and the user’s screen matter too. The newer APCA method gives different results and is not used here.
  • Contrast is one part of accessibility, not all of it.

References

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.