Matching Sox ConverterPART OF MATCHING SOX TOOLS
100% free tools
COLOR · CONVERT ON YOUR DEVICE

Color contrast checker

See a color's contrast ratio against white and against black, using the WCAG formula.

Free forever. No signup. No watermark. Files never leave your device.

♧   Files stay on your device

About Color contrast checker conversion

Low-contrast text is one of the most common accessibility failures on the web, and it hurts everyone reading in bright sunlight, not just people with low vision. The Web Content Accessibility Guidelines measure legibility with a contrast ratio from 1:1 (no contrast) to 21:1 (black on white). Level AA asks for at least 4.5:1 for normal body text and 3:1 for large text and essential interface graphics; level AAA raises body text to 7:1.

Enter a hex code or pick a color and the checker reports its ratio on a white background and on a black background, calculated from relative luminance exactly as WCAG defines it. That answers the most frequent design question — can I put this brand color on white, or does it need a dark background, or should text on top of it be white or black?

The tool compares only against pure white and pure black. To test two arbitrary colors, such as a gray on a beige panel, you will need a dedicated two-color checker. Click a tint or shade to quickly find a darker or lighter variant of your color that passes.

How to do it

  1. Open the Color tool from the button above.
  2. Type your text or background color as a hex code.
  3. Scroll to Contrast ratio and read the On white and On black values.
  4. Compare against 4.5:1 for body text or 3:1 for large text and icons.
  5. If it falls short, click a darker shade or lighter tint and check again.

Color contrast checker FAQ

What contrast ratio do I need?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 for normal text.

Can I compare two custom colors?

No. The checker compares your color against white and against black only.

How is the ratio calculated?

From relative luminance using the WCAG 2 formula: (L1 + 0.05) / (L2 + 0.05).

Does passing the ratio guarantee accessibility?

No. It covers color contrast only; font size, weight, and layout matter too.

THE MATCHING SOX FAMILY

One helpful wolf. More free tools.

Same simple promise in every tool: no required account, minimal data, and local processing whenever practical.

Yard Socket™ keeps your favorite yard accessories right where you want them. Anchor once. Swap forever.

Matching Sox Converter — Less fuss. More finished.
A project by Yard Socket LLC