Understand the result
What the checker measures
Color contrast is the difference in perceived luminance between two colors. This tool calculates WCAG 2.2 sRGB contrast after treating your foreground as painted over the background and the background as painted over an explicitly chosen opaque backdrop. One passing combination does not prove that an entire page or interface is accessible.
What contrast ratio does WCAG require?
WCAG 2.2 SC 1.4.3 (AA) requires 4.5:1 for normal text, or 3:1 for large text, with exceptions. SC 1.4.6 (AAA) raises those to 7:1 and 4.5:1 respectively.
What counts as large text?
At least 18pt (24 CSS px) at normal weight or 14pt (approximately 18.67 CSS px) at bold weight. Smaller text follows normal-text thresholds. See the W3C large-scale text definition. Thin or unusual fonts may still render poorly in real use.
Under SC 1.4.11 (Non-text Contrast), meaningful component boundaries, states, and graphics generally need 3:1 against adjacent colors, subject to exceptions. The tool displays non-text contrast of the tested pair but does not automatically determine the relevant adjacent colors or evaluate the complete component.
Which gray text passes AA on white?
A one-step gray change can cross the AA threshold. Example pairs use opaque sRGB colors; ratios shown here are rounded for reading, while pass/fail checks use the full computed values.
| Text | Contrast | Normal-text AA | Try pair |
|---|---|---|---|
#777777 | 4.48:1 | Fail | Test #777777 on white |
#767676 | Approximately 4.54:1 | Pass | Test #767676 on white |
#000000 | 21:1 | Pass | Test black on white |
May a 4.499:1 ratio round up to 4.5:1?
No. W3C's contrast minimum explanation says thresholds must use unrounded ratios. A displayed 4.50:1 could still be a failing value immediately below 4.5:1.
How transparent colors are calculated
The checker accepts HEX (3, 4, 6 or 8 digits), RGB, RGBA, HSL and HSLA values in the sRGB color space. Explicitly choose a solid backdrop. The background is composited over it, followed by the foreground over the resulting background. Final effective sRGB colors are quantized to eight-bit hexadecimal for the reported ratio. This models flat, solid layers; it does not sample actual screen pixels, background images, gradient points, blend modes, or changing backdrops.
For a translucent text color, the correction feature proposes a replacement opaque HEX foreground. “Nearby” means a constrained hue/saturation-preserving HSL lightness adjustment, not a guaranteed closest visual or perceptual match. Every proposed output is checked again against the fixed effective background after HEX conversion. Some combinations may have no passing suggestion for the target.
How to interpret a palette matrix
Enter up to 12 colors, one per line, optionally with a name. Each row is a possible foreground and each column a background; selecting a cell loads that pair into the main checker. Filter results for normal or large text and AA/AAA. The CSV includes each evaluated pair, including failing ones. Saved named pairs are stored locally in the current browser; they are not synced between devices.
Test actual interface states separately
Default, hover, focus, selected, and error states can use different color pairs. Test each separately and also inspect visible focus indicators, component borders, adjacent colors and state differentiation. This tool does not establish focus appearance or overall conformance. Color-vision simulation is intentionally not included because an unvalidated simulation must not be presented as proof of accessibility.
Does passing contrast mean my page is accessible?
No. Font rendering, images, contrast at every UI state, focus indicators, keyboard operation, semantic structure, screen-reader behavior and other requirements need separate review. This tool is a focused aid, not an accessibility certification.