simplify colour comparison