Yellow or sweet Vidalia onions are the best onions for adding to pasta sauce. This is because yellow onions have a sweet, mellow flavor and the large amounts of sugar they contain help them caramelize in the pan when frying.