the uppermost layer of the skin is called the epidermis. It is the outermost layer of the skin and provides a protective barrier against environmental factors, pathogens, and moisture loss. The epidermis also contains cells responsible for producing melanin, the pigment that gives skin its color, and it constantly renews itself through a process called cell turnover.