Color To HSL

The hue, saturation and lightness of a color.

Node id color/to-hsl

The Color To HSL node outputs the hue h, saturation s and lightness l of color, each from 0 to 1, as used by Color From HSL.

Inputs

NameTypeDefaultNotes
colorColor{ r: 0, g: 0, b: 0, a: 1 }

Outputs

NameTypeNotes
hnumber
snumber
lnumber

Behaviour

  • Grays. A color with no hue (black, white, grays) gives h = 0 and s = 0.
  • No opacity. The color's opacity is not an output: read it with Break Color (a).
  • Default. An unset color is black: 0, 0, 0.
  • Shifting a color. Add to h and feed the three values back into Color From HSL to turn a color around the color wheel.
© 2026 Wirepaint