Pigmentation occurs when the skin produces more melanin, the pigment that gives skin its color. This can make spots or patches of skin appear darker than surrounding areas. Pigmentation is a common skin condition. It affects people of all skin types. Some forms of Pigmentation, including melasma and sunspots, are more likely to affect areas of skin that face sun exposure, including the face, arms, and legs.