Answer:
Ecologically and with predation probabilities
Explanation:
If you have a color that contrast with your environment you have to found an environment where you can hide. For example, if you are red and the ground is green you'll be too conspicous. But if you are red and you find a flower red too, you will be no longer conspicous. That gives the population a variate espectrum of niches.
If you are too conspicous there are more probabilities that a predator find you and eat you.