Converts RGB values to CMYK values.
An object with r, g, and b properties.
An object with c, m, y, and k properties.
If the input is not a valid RGB object or if RGB values are out of range.
Converts RGB values to CMYK values.