Melanin is a natural pigment that is responsible for skin color and protection against UV radiation. In cosmetics, melanin may be used in formulations to help protect the skin from sun damage and to even out skin tone.