Your dermatologist may recommend certain drugs depending on the reason for your hyperpigmentation. Melasma is treated using intense pulsed light therapy, which uses a wide range of light to target and remove pigment by creating heat.