Pp bleeding?

I’m about 9 weeks pp and I stopped bleeding around 3 weeks. A few days ago I had brown tinted discharge and that changed to pink discharge, pink spotting and then to red spotting. It only last 2 days. I thought I was getting my first period since I was having pains and slight cramps. What could this be?