When your skin is exposed to sunlight, the melanocytes in the deeper layers of your skin produce cells that contain a skin-darkening pigment called melanin. If certain areas of your skin overproduce melanin, you end up with darker patches of skin known as hyperpigmentation.
you can get rid of it by keeping skin moist to boost cell turnover, keep hands off injuries like bug bites , pimples etc