Prevent wood color bleeding through paint
A Shellac based primer is what you need this will normally seal in 1 coat.
The 2 main types I can think of are kilz and zinser these stop the bleeding through.
I have found this is the only way to go for freshly milled wood, covering things like smoke stained surfaces that cleaners like Tri sodium phosphate won’t remove.
A good coat of shellac primer and then even white won’t show or that has been my experience. I don’t work for or have any interest in either company I have used there products successfully for many years after having similar results with regular primer.