The brilliant colors of deciduous trees and shrubs display in fall are actually the grande finale of the compliceted process of photosynthesis. That's how plants produce food. It takes place in the leaf cells that contain chlorophyll, the pigment that makes leaves green. Leaves make chlorophyll all through the growing season. But as temperatures get cooler and the days get shorter, chlorophyll production slows down and eventually stops. As the chlorophyll declines, the green starts to fade away, revealing pigments that had been hidden by green. This is when the show begins.
Carotenoids are yellow pigments that turn aspens and ginkgos stunning shades of yellow and gold. Tannins are responsible for the dull browns of some oaks. And since all leaves contain at least some tannin, that's why most of them eventually turn to brown, especially after they fall to the ground.