Evolution of colour vision

The evolution of colour vision causes light to be seen according to its wavelength. This has obvious advantages, especially it helps animals find food.
The colour 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 colour. Predators also use colour vision to help them find their prey.
All this applies mainly to animals in the daytime. On the other hand, nocturnal mammals have much less-developed colour vision. For them, space on the retina is better used with more rods since rods collect light better. Colour differences are much less visible in the dark.
Arthropods.
Apart from vertebrates, the only land animals to have colour vision are arthropods. Aquatic arthropods such as crustacea also have colour vision. As with vertebrates, the details differ, but the molecules which do the work the opsins – are very similar.
Vertebrates.
Four photopigment opsins exist in teleost fish, reptiles and birds. This suggests that the common ancestor of tetrapods and amniotes (~360 million years ago) had full colour vision:
Mammals.
In contrast, mammals lost much of their colour vision capability during the long period in the Mesozoic when they lived as nocturnal animals. 
Many primates do live as daytime animals, and one group – the Old World monkeys – has trichromatic vision. The anthropoid apes and humans are descended from this group of monkeys, and also have good colour vision. So it comes about that most monkeys and humans have good colour vision, but most other eutherian mammals do not: they have only two opsins, and so they are "bichromatic". This has many consequences. For example, most deer cannot see red or orange. Thus they do not see the orange colour of tigers. But monkeys do, because primates have one more opsin than other mammals. A film by David Attenborough illustrates this well.
UV light.
Ultraviolet light plays a part in colour perception in many animals, especially insects.
Colour vision, with UV discrimination, is present in many arthropods—the only terrestrial animals besides the vertebrates to have this trait.
Birds, turtles, lizards, many fish and some rodents have UV receptors in their retinas. These animals can see the UV patterns found on flowers and other wildlife that are invisible to the human eye.