Define a color class with different requirement