Sass rgb() Function

Last Updated:

Sass rgb() Function

The rgb() function returns a color with the given red, green, blue, and alpha channels.

Example

SASS TO CSS CONVERTER
.foo{ color: rgb(255, 255, 255); }

Syntax

rgb($red $green $blue)

Parameter Value

ValueTypeExplanation
$red Required Specifies the red channel.
$green Required Specifies the green channel.
$blue Required Specifies the blue channel.

Return Value

ValueExplanation
color Returns the hex color value.

Share this Page

Meet the Author