I consistently see hydrogen peroxide mentioned for removing stains. My experience with it on white items is as you described- yellow staining. I never got it out. I hope you are more successful than I was. I do not recommend hydrogen peroxide for fabric. There are plenty of good laundry pretreaters. I use the spray in the dark blue bottle spray n wash? And also Greased Lightening. Good luck!