Evolution of colour vision
The color vision of many herbivores allows them to see fruit or (immature) leaves which are good to eat. In hummingbirds, particular flowers are often recognized by color. Predators also use color vision to help them find their prey.