Overexposure to the sun can cause your body to produce an excess of melanin