Color Contrast Checker: guide, examples and important details
How the Color Contrast Checker works
WCAG contrast ratio compares relative luminance. AA generally requires 4.5:1 for normal text and 3:1 for large text. AAA uses stricter thresholds of 7:1 and 4.5:1 respectively.
Tips for better results
Do not rely on colour alone to communicate status. Test focus indicators, icons and controls as well as paragraph text, and check the rendered interface in context.
Accuracy, privacy and limitations
This utility runs in the visitor's browser and uses only the information entered for the current calculation or preview. Check important figures against the relevant provider's current documentation before relying on them for a business decision. Results are estimates and do not replace professional, legal, tax, accessibility or carrier-specific advice where applicable.
Formula and method behind the Color Contrast Checker
The contrast ratio compares the relative luminance of the lighter and darker colours using (L1 + 0.05) ÷ (L2 + 0.05). WCAG 2.2 AA text thresholds are generally 4.5:1 for normal text and 3:1 for large text. The ratio is a useful test, but it is only one part of accessible design.
Practical example: using the Color Contrast Checker
A developer can test a dark navy heading on a white background, then adjust the foreground colour until normal body text reaches the required contrast threshold. Repeat the check for buttons, links and muted labels.
Choosing inputs and checking your result
For a reliable color contrast checker result, use current source information and keep each input in the unit shown beside its field. Change one assumption at a time when comparing scenarios so you can see which value caused the result to change. Check the displayed output against a small example you can verify independently, and keep a note of any rate, date or convention that affects the calculation. If the result will be used for a business, tax, employment, accessibility or production decision, confirm the relevant rule with the responsible provider or authority.