Sass complement() Function

Last Updated:

Sass complement() Function

The complement() function returns the RGB complement of a given color.

Note: This is identical to adjust-hue($color, 180deg) function.

Example

SASS TO CSS CONVERTER
.foo{ color: complement(#6b717f); }

Syntax

complement($color)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.

Return Value

ValueExplanation
color Returns the RGB complement of $color.

Share this Page

Meet the Author