Mammalian pigment cells that produce melanins, pigments found mainly in the epidermis, but also in the eyes and the hair, by a process called melanogenesis. Coloration can be altered by the number of melanocytes or the amount of pigment produced and stored in the organelles called melanosomes. The large non-mammalian melanin-containing cells are called melanophores.