Set a color to a given contrast