Relative Luminance Calculator

Compute WCAG relative luminance from RGB values 0-255.

Description

Compute WCAG relative luminance from RGB values 0-255.

Relative Luminance Calculator: Compute WCAG relative luminance from RGB values 0-255.

When to use Relative Luminance

Use this color calculation to reproduce a defined sRGB compositing, blending, luminance, or accessibility-contrast operation with explicit color inputs.

Red channel
Required integer input.
Green channel
Required integer input.
Blue channel
Required integer input.

How Relative Luminance works

Compute WCAG relative luminance from RGB values 0-255. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1

Relative luminance
The resulting relative luminance returned as a number.

Limitations and assumptions

  • Results depend on color space, transfer function, alpha convention, rounding, display profile, and the precise accessibility formula. Numeric contrast does not by itself establish readability for every user or interface state.
  • Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.

Alternative or Complementary approaches

Verify the color-space and alpha assumptions, inspect the rendered result, and test relevant foreground, background, hover, disabled, and focus states. Pair contrast checks with broader accessibility review.

References

  1. Web Content Accessibility Guidelines — Wikipedia contributors

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies