checks if the read color is a valid color