$ 0 0 The "trick" is identical for hsl and rgb. The Channels enum does not define the hue/saturation/lightness channels so you have to use the rgb names: h = r, s = g, l = b.