Color node

HSL Color

Compose a color from Hue, Saturation, Luminosity, and Alpha components. HSL is often more intuitive than RGB for creating harmonious color palettes, cycling through the color wheel, or adjusting brightness without shifting hue.

Inputs

PortTypeDefault
HuePosition around the color wheel — 0 is red, a third is green, two thirds is blue. Clamped to 0…1, so both ends land on red.float0
SaturationHow pure the color is. Clamped to 0…1, where 0 is plain grey and 1 is fully vivid.float1
LuminosityBrightness of the color. Clamped to 0…1 — 0 is black, 0.5 is the pure hue, 1 is white.float0.5
AlphaOpacity of the result. Clamped to 0…1, where 0 is fully transparent.float1

Outputs

PortType
Colorcolor

How It Works

HSL Color converts Hue, Saturation, and Luminosity values into a standard RGBA color (). The HSL color model separates the three perceptual dimensions of color:

  • Hue — The "type" of color (red, orange, yellow, green, etc.), represented as a position on a circular color wheel normalized to 0 — 1.
  • Saturation — How vivid the color is. Reducing saturation moves toward a neutral gray.
  • Luminosity — How light or dark the color is. At 0 everything is black; at 1 everything is white; at 0.5 you see the purest form of the hue.

The Hue input wraps around: values of 0.0 and 1.0 both produce red. This makes it ideal for continuous animations — you can feed a linearly increasing value (e.g. from Time or a Math node) into Hue and it will cycle smoothly through the entire spectrum with no discontinuity.

Hue Color Wheel Reference

Hue ValueColor
0.000Red
0.083Orange
0.167Yellow
0.250Yellow-Green
0.333Green
0.417Spring Green
0.500Cyan
0.583Azure
0.667Blue
0.750Violet
0.833Magenta
0.917Rose
1.000Red (wraps)

Use Cases

  • Color wheel animation — Connect Time > Seconds through a Math (modulo 1) into Hue for a smooth rainbow cycle.
  • Harmonious palettes — Use a base Hue and offset by fixed amounts (e.g. +0.5 for complementary, +0.333 for triadic) to generate coordinated color schemes.
  • Brightness control — Adjust Luminosity while keeping the same Hue and Saturation to create light/dark variants of a color.
  • Desaturation effects — Animate Saturation from 1 to 0 to fade a color to grayscale.
  • MIDI/OSC-driven color — Map a MIDI CC value (0 — 127 remapped to 0 — 1) directly to Hue for intuitive hardware color control.

Tips

  • For the purest, most vibrant colors, keep Luminosity at exactly 0.5 and Saturation at 1.0.
  • Luminosity at 0.0 always produces black and at 1.0 always produces white, regardless of Hue or Saturation.
  • To decompose a color back into its HSL components, use the Color to HSL node.
  • HSL is better suited than RGB for smooth color transitions and animations because changing a single value (Hue) cycles through all colors, whereas RGB requires coordinating three channels simultaneously.

Open HSL Color in the interactive catalog →

HSL Color is one of 381 nodes in Grafit Pro.

Free download. Every feature for 7 days, no card. Then €99.99 once — or keep playing your projects as a Player.

More Color nodes