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