Maybe a bruise with underlying bone spur. Arteriosclerosis
of vessels leading to legs can shower portions of a plaque
to any part of the foot, and this is often seen in several areas as purple spots which do not blanch when pressed.
Best have it examined by your doctor.