These docs are for v1.0. Click to read the latest docs for v1.2.

HSL / HSLA

Creates a new color from the specified hue, saturation, lightness and alpha values.

Syntax

=HSL(hue, saturation, lightness)

=HSLA(hue, saturation, lightness, alpha)

Arguments

ArgumentTypeDescription
hueNumberThe hue value, from 0 to 255
saturationNumberThe saturation value, from 0 to 255
lightnessNumberThe lightness value, from 0 to 255
alphaNumber(Optional) The alpha value, a decimal value from 0 to 1

Examples

=HSLA(0, 1, 0.5, 1)#ff0000ff

=HSLA(0, 1, 1, 0.5)#ffffff7f