Spotting for 3 days.

I’m 5 weeks and 4 days. I started as brown and then went to pink now back to brown. There are spots in my underwear last night I was having horrible cramps. Any ideas?