Thanks for query,
As it turns black from pink the first possibility is
you have blood collected at your thigh may be due to any injury
or insect bite.
It may be an eruption of boil.
You should take mild anti inflammatory medicine along with anti allergic medicine.