Converts a color to its RGB string representation.
The color to convert.
The RGB string, suitable for CSS usage.
const rgbString = colorToRgbString("#ffffff");console.log(rgbString); // "rgb(255, 255, 255)" Copy
const rgbString = colorToRgbString("#ffffff");console.log(rgbString); // "rgb(255, 255, 255)"
Converts a color to its RGB string representation.