I too have seen this with some Samia cocoons , Lackey moth and Lappet cocoons . Lackey especially are covered in a yellow powder and lots of it .
I wonder if it's foul tasting to predators so they learn to leave them alone or the powder is irritating to their eyes . Another possibility is that it could be some kind of anti fungal powder . These are only ideas/thoughts with no proof behind them .