In some cases, a person’s body might automatically produce more skin pigmentation than is needed. Several health and environmental factors can also heighten a patient’s risk for hyperpigmentation, like specific medications, skin injury or trauma, and exposure to the sun.