desaturate($color, $amount)
Makes a color less saturated. Takes a color and a number between 0% and 100%, and returns a color with the saturation decreased by that value.
desaturate($color, $amount)
Makes a color less saturated. Takes a color and a number between 0% and 100%, and returns a color with the saturation decreased by that value.
Examples:
desaturate(hsl(120, 30%, 90%), 20%) => hsl(120, 10%, 90%)
desaturate(#855, 20%) => #726b6b
Parameters:
Returns:
Raises:
Designed by : w10schools
service@w10schools.com
Please login to continue.