Hyperpigmentation is a condition where parts of the skin are darkened or discolored. It occurs when the skin produces more melanin, which is the pigment that creates skin color. Hyperpigmentation can result from a variety of factors, including damage from the sun, acne scarring, inflammatory or autoimmune disorders, medication side effect, eczema, or any burns or injury to the skin.