Hyperpigmentation on the ankles is also due to excess melanin production caused by chronic friction with clothes and footwear, eczema or dermatitis leading to dark ankles. Certain circulatory conditions can also cause the skin to darken and need medical attention.