You can use any kind of onion, but I prefer yellow onions because they have the best flavor balance. Sweeter onion varieties generally caramelize best because they have a higher sugar content, but again, any onion will work (including red onions).