Sass hsl() Function
You are Here:
Sass hsl() Function
The hsl()
function returns a color with the given hue, saturation, and lightness and the given alpha channel.
Example
SASS TO CSS CONVERTER
.foo{
color: hsl(210deg, 100%, 20%);
}
Syntax
hsl($hue, $saturation, $lightness)
Parameter Value
Value | Type | Explanation |
---|---|---|
$hue | Required | Specifies the degree to which a stimulus can be described as similar to or different from stimuli that are described as red, green, blue, and yellow. The hue is a number between 0deg and 360deg (both are inclusive). |
$saturation | Required | Specifies the intensity of color. The saturation is the numbers between 0% and 100% (both are inclusive). |
$lightness | Required | Specifies the tone of the color. The lightness is the numbers between 0% and 100% (both are inclusive). |
Return Value
Value | Explanation |
---|---|
color | Returns a color with the given hue, saturation, and lightness. |
Reminder
Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in Sass.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.