Explanation: Further, other cells contribute to the function of the epidermis. Melanocytes are cells that produce melanin, a compound involved in skin pigmentation produced in response to ultraviolet (UV) light exposure (6). Melanin can absorb energy from UV light to shield underlying tissues from damage.