Don't worry!
I'm sure you just have an external hemorrhoids.
Firm and painful lump of purple tint or blue color which develop around the external opening of the anus, is known as external hemorrhoid.
Is it located around the rim of the anus?
Are you practicing repeated straining to have a bowel movement, due to constipation?
Have you experienced repeated episodes of diarrhea recently?