Calculate WCAG relative luminance for an sRGB color.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
sRGB channels are converted from gamma-encoded values to linear light, weighted by the WCAG coefficients, and summed to produce relative luminance from 0 to 1. The value feeds contrast calculations but does not itself express readability.
#FFFFFF
Color: #FFFFFF Relative Luminance: 1.000000 Range: 0 (black) to 1 (white)
Contrast checks, design tokens, and accessibility reports calculate luminance.