Oh that's easy. The yellow onion is in the forest of hope, It is behind a few walls from where you start. it's kinda hard to explain. from the pikmin site in the forest of hope, you go where the wooden wall was, then move to the right. you break down another wall revealing a black onion. touch the onion and it will turn yellow. and voila, yellow pikmin.
peeling fun off a tree!