Melanin is the pigment that gives your skin its color, and it is produced in specialized skin cells called melanocytes. The darker your skin is, the more melanin these cells produce. They can be found deep in the epidermis, close to the basement membrane.