Unknown spot on thigh

last week i began to notice a tender spot on my leg its was pink (almost purple) and painful to touch and had a small soft lump. a couple of days later the pain stopped but then it got whitehead but it wasn't a pimple. Now i tried rubbing it to see if the bump was still there but it ended up making it look like peeled skin. Any insight please?

image