Melanin is a special pigment of the epidermis. It helps protect the body from the sun's radiation. This pigment contributes to the color of the skin and is produced deep within the layers of the epidermis. It is created from amino acid tyrosine. 