Skin pigmentation refers to the coloring of the skin, primarily due to the presence of a pigment called melanin. Melanin is produced by specialized cells known as melanocytes, which are located in the basal layer of the epidermis. The amount and type of melanin synthesized by melanocytes determine the color of the skin.