Color Contrast Checker

Calculate WCAG sRGB contrast between two opaque colors and compare applicable thresholds.

How to use it

  1. Try #000000 foreground and #ffffff background for a 21:1 ratio.
  2. Run the tool and review the result before copying or using it.

Use hex or integer rgb() values. Contrast depends on actual rendering and is only one accessibility requirement.

Related guides

Related tools

Frequently asked questions

Does this send my input to a server?

The input stays in the browser. The tool does not make a network request to analyze it.