Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

This free tool allows you to check the WCAG color contrast ratio between any foreground and background color and instantly see whether the pair passes AA and AAA for normal and large text. Enter two hex values, preview real text, and fix accessibility issues before you ship.
Foreground
3- or 6-digit hex with optional # prefix.
Background
3- or 6-digit hex with optional # prefix.
Reverse colours
Copy to Clipboard
Contrast ratio
The five boxing wizards jump quickly.
Large text preview
Normal text AA (4.5:1)
WCAG PassNormal text AAA (7:1)
WCAG PassLarge text AA (3:1)
WCAG PassLarge text AAA (4.5:1)
WCAG PassA color contrast checker measures the WCAG contrast ratio between a text (foreground) color and its background, then reports whether the pair is readable under accessibility guidelines. You enter two colors and it returns a ratio from 1:1 (identical) to 21:1 (black on white), plus AA and AAA pass or fail results for normal and large text.
Contrast is one of the most common accessibility failures on the web, and it affects real users every day. Here is why checking it matters:
Checking a color pair takes only a few seconds and nothing is sent to a server. Follow these steps:
WCAG defines two conformance levels for contrast, and the required ratio depends on text size. The table below sums up the thresholds:
| Text type | WCAG AA | WCAG AAA |
|---|---|---|
| Normal text (under 18pt / bold under 14pt) | 4.5:1 | 7:1 |
| Large text (18pt+ / bold 14pt+) | 3:1 | 4.5:1 |
| UI components and graphics | 3:1 | Not defined |
As a tool, the color contrast checker offers a few capabilities that make accessibility checks effortless. Here are the features:
A contrast checker is useful anywhere color meets text, across design, development, and QA. Common workflows include:
This tool is maintained by TestMu AI (formerly LambdaTest), the team behind a unified testing platform used to validate UI across 10,000+ real devices and 3000+ browsers, so accessibility checks fit naturally into a cross-browser QA workflow.
For normal text, aim for at least 4.5:1 to meet WCAG AA and ideally 7:1 for AAA. Large text and UI components need only 3:1 for AA. Higher ratios are always easier to read, with pure black on white reaching the maximum of 21:1.
AA is the widely required baseline: 4.5:1 for normal text and 3:1 for large text. AAA is the enhanced level, requiring 7:1 for normal text and 4.5:1 for large text. AAA is typically reserved for text-dense content like legal or academic documents.
The ratio compares the relative luminance of the two colors using the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color and L2 the darker. The result ranges from 1:1 for identical colors to 21:1 for black on white.
Yes. The tool reports separate AA and AAA results for large text, which WCAG defines as 18pt and up, or 14pt and up when bold. Large text needs only 3:1 for AA and 4.5:1 for AAA because bigger glyphs stay readable at lower contrast.
Yes, it is completely free with no signup, login, or usage limit. You can check as many color pairs as you need. The tool is maintained by TestMu AI (formerly LambdaTest) and runs entirely in your browser.
No. All processing happens in your browser and nothing is uploaded. Your color values never leave your machine, so you can safely test unreleased brand palettes and internal design tokens.
Most laws that reference accessibility, such as the ADA and Section 508, target WCAG AA. That means 4.5:1 for normal text and 3:1 for large text and UI components. Meeting AA is the practical compliance bar for most websites and apps.
Yes. WCAG 2.1 requires a minimum 3:1 ratio for UI components and graphical objects against adjacent colors. Use the foreground as the component color and the background as the surface behind it to confirm interactive elements are distinguishable.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance