The second is a melanocyte, a cell that produces the pigment melanin. Melanin gives hair and skin its color, and also helps protect the living cells of the epidermis from ultraviolet (UV) radiation damage.