Sass saturation() Function

Last Updated:

Sass saturation() Function

The saturation() function returns the HSL saturation of a given color as a number between 0% and 100%.

Example

SASS TO CSS CONVERTER
@debug saturation(#e1d7d2); // 20

Syntax

saturation($color)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.

Return Value

ValueExplanation
Number Returns the HSL saturation of $color as a number between 0% and 100%.

Share this Page

Meet the Author