Human skin color is an example of a trait that has undergone natural selection. Varying levels of UV light have selected for a range of skin tones around the globe. In each case, the amount of melanin represents a compromise between the need to protect folate and the need to make vitamin D.