Converts RGB values to hexadecimal color code.
If any of the RGB values are invalid.
The red value (0-255).
The green value (0-255).
The blue value (0-255).
The equivalent hexadecimal color code.
Converts RGB values to hexadecimal color code.
Throws
If any of the RGB values are invalid.