HUE
Gets the hue channel of the specified color in the HSL colorspace. Returns an integer from 0 to 360. For more information about hue, see: https://en.wikipedia.org/wiki/Hue
Syntax
=HUE(color)
Arguments
Argument | Type | Description |
---|---|---|
color | Color | The color |
Examples
=HUE("#0000ff")
→240
Gets the hue for the color represented by the hex color code #0000ff (blue)
=HUE(RGB(0, 255, 0))
→120
Gets the hue for a color having an RGB value of green
=HUE(0)
→#ERROR!
Attempts to get the hue from an integer, which is invalid because it cannot be converted to a color
Updated 7 months ago