Converts a hex number/string representing a color to an RGB string.
toRGBString('#fff') // Returns 'rgb(255,255,255)'toRGBString('0x000', '0x') // Returns 'rgb(0,0,0)' Copy
toRGBString('#fff') // Returns 'rgb(255,255,255)'toRGBString('0x000', '0x') // Returns 'rgb(0,0,0)'
Hex number/string representing a color.
Prefix of hex if using a string.
RGB string.
Converts a hex number/string representing a color to an RGB string.
Example