Hyperpigmentation is patchy discoloration or marks made by deposits of excess melanin, that results from sun damage, acne, a pimple, a rash, trauma, scrapes and some medications. When hyperpigmentation develops after a skin injury or inflammation like acne, trauma and pimples, it is called post-inflammatory hyperpigmentation. Extensive and uneven skin tone is often caused by medication. Sun exposure will worsen existing hyperpigmentation. Hyperpigmentation is typically harmless but can affect your appearance and confidence. Hypopigmentation is the formation of white spots on skin exposed to the sun, usually the back, arms and chest. They are caused by low levels of melanin.