Color and WCAG contrast checker

Pick a text color and a background color. Contrast is computed in this page using the official relative-luminance method from WCAG 2. The thresholds used here are 4.5:1 for normal-text AA, 3:1 for large-text AA, 7:1 for normal-text AAA, and 4.5:1 for large-text AAA.

on

The quick brown fox jumps over the lazy dog.

Worked example

Leave the defaults, dark text on a warm paper background. The ratio should be well above 7:1, so both AA and AAA pass for normal text. Now set the text to a mid gray such as #777777. The ratio falls, and AAA for normal text should fail while AA may still pass. That is the difference the tool is for: you see the number change before you ship a page.

FAQ

  1. Is this official certification? No. It is a calculator. For a full audit, use official WCAG documentation and a dedicated accessibility review.
  2. What is "large text"? WCAG treats 18 point (or 14 point bold) and larger as large text. This page reports both threshold sets; it does not measure your font size automatically.
  3. Are colors uploaded? No.

Header photo: Wrench Sockets by Jaroslaw%20Puszczy%u0144ski, CC0 1.0 (cropped and resized)