Color Contrast (WCAG)

Calculate Color Contrast (WCAG) instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.

Color Contrast (WCAG)

(L1+0.05)/(L2+0.05)
Contrast ratio
4.5
Calculate Color Contrast (WCAG) instantly with the exact formula and a worked example. Free online calculator — no signup, works on mobile.

More about: Color Contrast (WCAG)

What it calculates

The “Color Contrast (WCAG)” calculator computes Contrast ratio from 1 parameter: (l1+0.05)/(l2+0.05).

A converter between units of measure, currencies, and sizes.

Example calculation

With parameters (L1+0.05)/(L2+0.05) = 4.5 the result is 4.5.

How to use

  1. Enter the parameter values — every field above is adjustable with a slider.
  2. The result and related metrics are calculated automatically as you type.
  3. Use the additional metrics shown (if any) where needed.
  4. Copy the result or bookmark the page.

Related calculators