To add to the thoughts above.. If you've been to the vet recently, it may also be a reaction to a vaccination, as the hind legs are a common site for injections. Keep an eye on it and if it grows fast or she remains uncomfortable when you touch it, I would see your vet sooner rather than later. :)
I agree with Savas and queen. In addition to that, make sure it isn't a tick. Sometimes ticks can be confused by lumps and swollen areas. If it is....don't hesitate...kill the thing!!
Hi, is she an indoor/outdoor cat or does she live with more than one cat? If she does, than there's a good chance that this is an abscess(infection from a cat bite). The abscess might not heal on its own, and will probably need a vet to take care of it and put her on antibiotics.
Let us know how it goes!!
It's possible it's cancer. It could also be a pocket infection forming. I'd sugest having it checked out if it doesn't resolve (break and empty) in a few days to a week.