W3C Web Accessibility Initiative · reviewed 2026-10-10
What this source supports: WCAG 2.2 requires 4.5:1 contrast for normal text (AA) and 7:1 (AAA), with 3:1 for large text.
Source limit: Contrast is one of many accessibility requirements; it does not guarantee legibility on its own.
These sources support the statements above. They do not show that every person needs this guide. They do not show a specific result.
Limits
This App computes the WCAG contrast ratio from hex values you enter. It does not scan your page.
Contrast is one of many accessibility requirements; it does not guarantee legibility on its own.
Use current instructions from the responsible organization. This guide is a planning aid, not an official decision or a substitute for qualified advice.
Common questions
What does the App compute?
Compute WCAG contrast ratio between two hex colors and flag AA/AAA pass/fail.
What does the App not do?
This computes from hex values you enter. It does not scan a page for you.
Where do the numbers come from?
You enter every number yourself. The sources support the method and the limits. They do not produce a result for your specific case. Keep the original documents next to the sheet you build.
Before you start
Open the linked source page and keep it beside you.
Gather the values the App asks for:
Text color (hex, e.g. 1a1a1a).
Background color (hex, e.g. f8f8f8).
Set aside ten quiet minutes; rushed numbers are the main error this guide prevents.
Free Companion App
The App computes the worked example with your own numbers, in your browser.
APP 1
Color Contrast Quick Check
Compute WCAG contrast ratio between two hex colors and flag AA/AAA pass/fail.
This guide is edited for clarity and checked against the sources it links. It is not a substitute for official instructions or qualified advice. A linked source does not show that every person needs this guide.