These docs are for v1.0. Click to read the latest docs for v1.2.

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

ArgumentTypeDescription
colorColorThe 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