Both the amount and type of melanin produced is controlled by a number of genes that operate under incomplete dominance. One copy of each of the various genes is inherited from each parent. Each gene can come in several alleles, resulting in the great variety of human skin tones. Melanin controls the amount of ultraviolet (UV) radiation from the sun that penetrates the skin by absorption. While UV radiation can assist in the production of vitamin D, excessive exposure to UV can damage health.