HSL / HSLA
Syntax
=HSL(hue, saturation, lightness)
=HSLA(hue, saturation, lightness, alpha)
Arguments
| Argument | Type | Description |
|---|---|---|
| hue | Number | The hue value, from 0 to 255 |
| saturation | Number | The saturation value, from 0 to 255 |
| lightness | Number | The lightness value, from 0 to 255 |
| alpha | Number | (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
Updated 2 months ago