Skip to content
๐ŸŽจ

Color Luminance Calculator

Color

Calculate relative luminance of any color for WCAG contrast ratio compliance.

0
0
Color Luminance Calculator
Relative Luminance0.283010
Luminance %28.30%
Contrast Ratio

Contrast with white (#FFFFFF)

Aa
3.15:1Fail

Contrast with black (#000000)

Aa
6.66:1AA
Formula Used

L = 0.2126 ร— Rs + 0.7152 ร— Gs + 0.0722 ร— Bs

Where Rs, Gs, Bs are linearized sRGB channels. Contrast ratio = (L1 + 0.05) / (L2 + 0.05). WCAG AA โ‰ฅ 4.5:1, AAA โ‰ฅ 7:1.

WCAG's contrast ratio between two colors is actually built from a more basic number first, each color's own relative luminance, a single value describing how much light a color effectively reflects, calculated by weighting its red, green, and blue channels unevenly since the eye reads green as far brighter than an equal amount of blue. This tool calculates a single color's relative luminance directly, showing the number the WCAG contrast formula is actually built from rather than the final ratio between two colors.

See more about the Color Luminance Calculator

Useful for understanding why a specific color is pulling a contrast ratio up or down more than its lightness alone would suggest, debugging a custom contrast-ratio implementation by checking its luminance calculation against a known value, or seeing which color channel is actually driving a shade's luminance number the most.

Key features

  • Clean interface
  • Fast processing
  • No signup required
  • Works offline

Quick answers for Color Luminance Calculator

What does this show beyond the luminance number?
A contrast-ratio helper comparing your color against pure white and pure black backgrounds, flagged red if it falls below the 4.5:1 AA threshold, plus a lightness scale and the exact WCAG luminance formula used for the calculation.
How is perceived brightness determined?
Your color's real relative luminance value is compared against fixed thresholds, above 0.5 is labeled Light, above 0.25 is Medium, and anything lower is Dark.
Does it show its math, or just the result?
It displays the actual WCAG relative luminance formula (0.2126R + 0.7152G + 0.0722B on linearized sRGB values) directly on the page alongside your color's computed result.