Specilized cells in the epidermis called melanocytes produce melanin, a dark pigment that provides skin color. Melanin absorbs ultraviolet radiation in sunlight and preventing mutations in the DNA of skin cells and other damaging effects.ifferences in skin color result from differences in the amount of melanin that melanocytes produce and the distribution and size of pigment granules. Skin color is genetically determined.