The hsl()
functional notation expresses an sRGB color according to its hue, saturation, and lightness components. An optional alpha component represents the color's transparency.
Note: The legacy hsla()
syntax is an alias for hsl()
, accepting the same parameters and behaving in the same way.