Sign In

$colorToHex[]

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a hex format.

New v1.0.1+ Requires Brackets

Usage

$colorToHex[]

Arguments

NameTypeRequiredDescription
color
StringYesThe color string to convert.

Output

String

Was this page helpful?