Accessibility checks

Color contrast checker

Check how two opaque sRGB colors work together. See AA and AAA text thresholds, preview the pair, and export a focused color-contrast report.

Processed on this device3- or 6-digit hex · opaque sRGBWCAG 2.x ratio

Your workspace

No upload · No account · Separate output

Example: #123 or #123456. Alpha/transparency is not supported.

Example: #123 or #123456. Alpha/transparency is not supported.

Undo restores the previous import, example, reset, or swap. For typing, use your editor’s normal undo command.

How to use it

  1. Enter foreground and background colors as three- or six-digit hex values, or use the color pickers.
  2. Check contrast and read the individual AA, AAA, and non-text threshold results.
  3. Review the real design in context. Exported results cover only the entered opaque color pair.

Know the limits

  • The formula uses sRGB relative luminance and the contrast ratio defined in WCAG 2.x. Pass/fail comparisons use the unrounded result.
  • Large text is at least 18 pt (24 CSS px), or 14 pt (about 18.67 CSS px) bold. Font weight and rendering still need review.
  • Transparency, gradients, images behind text, focus states, component boundaries, and content-specific exemptions are outside this check.
  • A passing pair is not a full accessibility audit or a guarantee of legal compliance.

Walk through a real example

Check WCAG contrast without rounding away a failure

A step-by-step guide with worked examples and important limits.

Common questions

Why can 4.50:1 still fail?

The displayed number is rounded to two decimals. A true value slightly below 4.5 still fails the 4.5 threshold; decisions always use the unrounded ratio.

Can I check transparent text?

Not directly. First calculate or sample the actual composited opaque colors for the relevant background, then assess every required state.

What does the non-text result mean?

It compares the pair to the 3:1 threshold. Whether that criterion applies to a particular component or graphic depends on its purpose and adjacent colors.

Your input stays here

These standalone pages do not send your input to a server or save it in browser storage. Files and undo values remain in memory while the page is open. Copy and download happen only when you choose them.