LUMINANCE
Syntax
=LUMINANCE(color)
Arguments
| Argument | Type | Description |
|---|---|---|
| color | Color | The color |
Examples
=LUMINANCE("#0000ff")→0.0722
Gets the luminance for the color represented by the hex color code #0000ff (blue)
=LUMINANCE(RGB(0, 255, 0))→0.7152
Gets the luminance for a color having a value of 128 for red, 128 for green, 128 for blue, and 0.5 for alpha
=LUMINANCE(0)→#ERROR!
Attempts to get the luminance from an integer, which is invalid because it cannot be converted to a color
Updated 2 months ago