Melanin is a natural pigment that gives color to skin. Exposure to sunlight, hormonal influences and aging can cause an increase in melanin production and trigger hyperpigmentation. Hyperpigmentation appears as dark patches and age spots (also known as sun spots) that make skin look uneven.