Validates the color mode and its value.
The color mode to validate.
The value to validate.
True if the value is valid for the given color mode, false otherwise.
Validates the color mode and its value.