Relative luminance
Relative luminance is a normalized measure of a color’s apparent brightness calculated from the weighted contributions of its linearized red, green, and blue components.
Architecting Accessibility
Relative luminance is a normalized measure of the apparent brightness of a color based on the weighted contributions of its red, green, and blue channels.
- How it is used
- Measures foreground–background brightness differences to assess whether text meets WCAG contrast thresholds.
- How deep it goes
- Explains sRGB-to-luminance conversion and ratio interpretation without giving the conversion formula.
- Examples
- Contrasts black on white at 21:1 and a color pair that passes WCAG at 4.5:1 but falls below APCA’s body-text target.
- What you can do after
- Evaluate/understand whether foreground and background colors meet the stated WCAG contrast thresholds for text and UI components.
Read how Architecting Accessibility explains relative luminance →
Math for Web Design
Relative luminance is a normalized measure of the perceived lightness of a color, computed from linearized red, green, and blue components and ranging from black at 0 to white at 1.
- How it is used
- Uses relative luminance to calculate WCAG contrast ratios for accessible text and color pairs.
- How deep it goes
- Descends through sRGB normalization, piecewise gamma correction, weighted summation, contrast calculation, and JavaScript implementation.
- Examples
- Uses pure blue against white, a JavaScript contrast calculator, and a CSS text-and-background compliance exercise.
- What you can do after
- Apply it via JavaScript to compute luminance and contrast ratios from RGB or hexadecimal colors.
Everyday Data Visualization
Relative luminance is a normalized measure of the light emitted or reflected by a color relative to a reference white.
- How it is used
- Supports accessible color choices for text, data visualizations, and other foreground-background pairings.
- How deep it goes
- Defines the contrast formula and thresholds, but defers luminance mathematics to external calculators.
- Examples
- Uses blue bars on light gray, comparing 1.93:1 without a border against 8.7:1 with a dark-gray border.
- What you can do after
- Apply it via an accessible-colors calculator to evaluate foreground-background contrast and adjust visual elements.
Read how Everyday Data Visualization explains relative luminance →
What to know first
- WCAGThe Web Content Accessibility Guidelines are W3C recommendations with testable criteria for making web content accessible to people with disabilities.
Related concepts
- contrast ratioused by · A contrast ratio is the numerical ratio of the higher relative luminance to the lower relative luminance of two colors.
- WCAGused by · The Web Content Accessibility Guidelines are W3C recommendations with testable criteria for making web content accessible to people with disabilities.
- weighted sumuses · A weighted sum is an expression formed by multiplying quantities by corresponding scalar coefficients and adding the resulting products.
- RGBuses · RGB is an additive color model that represents colors through separate red, green, and blue component values or intensities.
Questions about relative luminance
What is relative luminance?
Relative luminance is a normalized measure of a color’s apparent brightness calculated from the weighted contributions of its linearized red, green, and blue components.
Which Manning books explain relative luminance?
Architecting Accessibility, Math for Web Design and Everyday Data Visualization.
What should I know before learning relative luminance?
Manning books that teach relative luminance usually introduce WCAG first.
What is relative luminance a kind of?
Relative luminance is a kind of luminance. Luminance is a measure of light intensity weighted according to human visual sensitivity and representing a color or image's brightness.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


