Purple blood?

Hey, I have had really light spotting the last few days, like not even there. And it has been either brown or purple... Has anyone had this happen before? And does anyone know why it's happening?