HUE
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

HUE

  • Dark
    Light
  • PDF

Returns an integer between 0 and 360 representing the hue component of the color.

Function signature

HUE(color: String) => Number
Parameter Description
Color Color

Examples

Formula Return value
HUE("#ff0") 60
HUE("rgb(10, 20, 40)") 220
HUE("hsl(80, 20%, 40%)") 79.5
HUE("red") 0

Was this article helpful?

What's Next