Melanin is a pigment that is formed in the skin and hair under the influence of ultraviolet rays. It protects the skin from harmful ultraviolet rays that can cause skin cancer and other diseases. Melanin also determines the color of the skin. In humans, skin color may change depending on the concentration