Sass saturate() Function

Last Updated:

Sass saturate() Function

The saturate() function makes a given color more saturated.

Example

SASS TO CSS CONVERTER
.foo{ color: saturate(#0e4982, 30%); }

Syntax

saturate($color, $amount)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.
$amount Required Increases the HSL saturation of $color by that amount. The $amount must be a number between 0% and 100% (both are inclusive).

Return Value

ValueExplanation
color Returns the saturated color.

Share this Page

Meet the Author