Melanocytes are cells in the outer layer of skin (epidermis) that produce melanin. Melanin gives skin its tan or brown color.