Converts RGB values to HSV values.
An object with r, g, and b properties.
An object with h, s, and v properties.
If the input is not a valid RGB object or if RGB values are out of range.
Converts RGB values to HSV values.