CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS hsl() Function

CSS hsl() Function



The hsl() function is used to define colors using the Hue Saturation Lightness model (HSL). In this, H stands for Hue, S stands for Saturation, and L stands for Lightness. It is used to represent colors in cylindrical coordinates.




Its syntax is:- hsl(hue, saturation, lightness)


Further Explanation:-


Value Description
hue Defines a degree on the color wheel from 0 to 360.
saturation Defines the saturation. 0% is a shade of gray and 100% is the full color.
lightness Defines the lightness; 0% is black, 50% is normal, and 100% is white

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS