Discharge

I had my period at the beginning of last week. And now today I’m cramping bad and I have brown creamy discharge, what is it?? I’m also on the pill and idk if that might have anything to do with it.