asRgb

@Stable
fun Color.asRgb(): CSSColorValue

Converts the Color to a CSSColorValue in the rgb() format.

Return

A CSSColorValue representing the color in the rgb() format, without the alpha channel.

See also