Yellow stained underwear???

So I’m 25 weeks pregnant now and for the last week or two I haven’t been able to wash our yellow stains in my underwear no matter how I was them or wash them with. It’s not pee cause well I’m not peeing myself. Is this discharge? Is there a way to stop it ruining my undies all the time. Should I just buy black underwear for now on?