Why are seeds different colours?

Seed colour and pattern are affected naturally by the need for camouflage.

See also How can I tell if my bag seeds are healthy?