Converts RGB color values to sRGB color space.
The RGB color to convert.
The color in sRGB color space.
If the input is not a valid RGB object or if RGB values are out of range.
Converts RGB color values to sRGB color space.