Melanocytes are cells found in the skin that produce melanin, a pigment responsible for skin, hair, and eye color. Melanocytes play a crucial role in protecting the skin from the harmful effects of ultraviolet radiation from the sun by producing melanin to absorb and scatter UV rays.