Cooking onions low and slow in a rich fat, like butter, in a nonstick pan will give you your best caramelized onions. Stir the onions frequently to avoid burning, making the whole soup taste burnt and bitter. Aim for a golden brown more than a mahogany color, and don't be afraid to taste test.