Sass hue() Function

Last Updated:

Sass hue() Function

The hue() function returns the hue of a given color as a number between 0deg and 255deg.

Example

SASS TO CSS CONVERTER
//Check your console @debug hue(#e1d7d2); // 20 @debug hue(#f2ece4); // 34.3 @debug hue(#dadbdf); // 228

Syntax

hue($color)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.

Return Value

ValueExplanation
Number Returns the hue of $color as a number between 0deg and 255deg.

Share this Page

Meet the Author