CSS hsl() Function (original) (raw)

Last Updated : 30 Aug, 2024

The **hsl() function is an inbuilt function in CSS that is used to define the colors using the Hue-saturation-lightness model (HSL).

**Syntax:

hsl( hue, saturation, lightness )

**Parameters: This function accepts three parameters as mentioned above and described below:

**Example: The below program illustrates the hsl() function in CSS:

html `

hsl() function