Skip to content
๐ŸŽจ

Color Luminance Calculator

Color

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

0
0

Color Luminance Calculator

Calculate relative luminance and perceived brightness of a color

Preset Colors
Relative Luminance0.000000
Luminance %0.00%
Perceived Brightness
Color Values
HEX
#3498DB
RGB
52, 152, 219
HSL
204ยฐ, 70%, 53%
Lightness Scale Preview
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
Your color:
0.0%
Contrast Helper

For text to be readable, use luminance contrast of at least 4.5:1 (AA) or 7:1 (AAA)

T
White background: 21.00:1
T
Black background: 1.00:1
Formula Used

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

Where Rs, Gs, Bs are the linearized sRGB values:

if (C โ‰ค 0.03928) then Cs = C / 12.92 else Cs = ((C + 0.055) / 1.055)2.4

More about the Color Luminance Calculator

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. 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 the Color Luminance Calculator do?
Calculate relative luminance of any color for WCAG contrast ratio compliance. The Color Luminance Calculator is one of 900+ free developer tools on Toolblip - all open to use without a signup.
How do I use the Color Luminance Calculator?
Open the Color Luminance Calculator on this page, paste or upload your input, and the result updates as you type. Use the copy button to grab the output, or adjust options to tune the result. Nothing you enter leaves your browser.
Is the Color Luminance Calculator free to use?
Yes. The Color Luminance Calculator is a free online tool on Toolblip - no signup, no account, no hidden usage limits. It runs in your browser and works on desktop and mobile.
Is the Color Luminance Calculator safe and private?
Yes. The Color Luminance Calculator processes your data entirely client-side, so nothing you paste is uploaded or stored on any server. It's safe to use with internal snippets, private keys for debugging, or any other sensitive content you'd rather not send to a remote service.
What kind of output does the Color Luminance Calculator produce?
The Color Luminance Calculator produces clean, formatted output that you can copy or download with a single click. The output is tailored to the tool's purpose โ€” formatted code, converted data, transformed text, or processed media โ€” and is ready for immediate use in your project or workflow.
Does the Color Luminance Calculator work on mobile devices?
Yes. The Color Luminance Calculator is designed to work on any device with a modern browser, including phones and tablets. The interface adapts to smaller screens, and the core functionality โ€” paste input, transform, copy output โ€” works the same way regardless of your device.
What color formats does the Color Luminance Calculator support?
The Color Luminance Calculator works with the formats web developers reach for every day - HEX, RGB / RGBA, and HSL. You can copy any value with one click for use in CSS, design tools, or code.
Can I pick a colour visually with the Color Luminance Calculator, or do I need to type values?
The Color Luminance Calculator supports both approaches. You can type colour values directly in any format (HEX, RGB, HSL), or click the colour swatch to open your system's native colour picker for visual selection. The tool converts between formats regardless of which input method you use.
Can I use the Color Luminance Calculator offline?
Once the page has loaded, the Color Luminance Calculator continues to work without an internet connection. Bookmark this page and return to it anytime - all logic runs locally.