Converts an RGB/RGBA color string to hex format.
Color string in rgb, rgba, or hex format.
Hex color string with optional alpha channel.
Converts an RGB/RGBA color string to hex format.