Color Contrast Checker

Check foreground and background contrast ratios against WCAG AA and AAA thresholds locally in your browser.

Supports HEX, RGB, HSL, and OKLCH color inputs.

Contrast ratio

14.61 : 1

Large heading sample (24px)

Normal body text sample at standard weight to test real reading comfort.

UI boundary & control sample
Normal text AA (4.5:1)Pass
Normal text AAA (7.0:1)Pass
Large text & UI AA (3.0:1)Pass
Large text AAA (4.5:1)Pass

About Color Contrast Checker

Color Contrast Checker computes exact WCAG 2.1 luminance ratios directly in your browser so you can verify text and interface boundary legibility in both light and dark color schemes.

How it works

  1. Pick colors with the swatches or paste any HEX, rgb(), hsl(), or oklch() value.
  2. Review the live ratio and Pass/Fail results for normal text, large headings, and UI control boundaries.
  3. Click Fix to 4.5:1 AA to find the nearest accessible foreground lightness without losing your hue, then copy the CSS pair.

Contrast thresholds

  • Normal text AA: Requires at least 4.5:1 contrast (7.0:1 for AAA).
  • Large text & UI boundaries AA: Requires at least 3.0:1 contrast for large headings, icons, and input borders.