yellow is the ideal variety for caramelizing. when you are sauteing onions to build flavor as a base for your dish (soup, tomato sauce, you name it), the yellow onion is your friend. that being said, white onions are a totally acceptable substitute for yellow, especially if you're cooking them.