hsl
Encodes a colour using HSL (hue, saturation, lightness) coordinates.
Syntax
-
hsl(h, s, l)-
his a real number -
sis a real number in [0, 1] -
lis a real number in [0, 1]
-
Description
hsl(h, s, l) is the colour object corresponding to the colour with HSL (hue, saturation, lightness) coordinates (h, s, l). The hue is a real number mod 360 while both saturation and lightness must belong to [0, 1].
Examples
hsl(43, 0.744, 0.49)
rgba(0.855, 0.648, 0.125, 1.000) (#DAA520, goldenrod)