Accessibility tool

Color Accessibility Toolkit

Check WCAG contrast ratios, preview typography, find passing foreground colors, and audit palettes and interface states—all in your browser.

FreeNo accountClient-side calculationsWCAG 2.2 guidance

Color pair

HEX, RGB, RGBA, HSL or HSLA

Transparency & backdrop
Choose a solid, fully opaque color. Alpha is composited over this backdrop, then text over the resulting background.
Text settings 16px / 400
Text preview

Current classification: Normal text · AA 4.5:1 · AAA 7:1

Accessibility target

Live preview

Normal text · 16px

Readable interface text. Can you read this comfortably?

Contrast ratio16.43:1
Passes AANormal text · 4.5:1 required
WCAG contrast results
ContentAAAAA
Normal textPassPass
Large textPassPass
UI components 3:1 minimumPass
Calculation details & limitations

Effective text #17202b on #ffffff after compositing.

Results use unrounded ratios. UI component requirements depend on adjacent colors and context. Passing this pair does not certify overall accessibility.

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 colors on white (#ffffff)
TextContrastNormal-text AATry pair
#7777774.48:1FailTest #777777 on white
#767676Approximately 4.54:1PassTest #767676 on white
#00000021:1PassTest 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.