In autumn, many leaves turn yellow and orange. Mostly, those colors were there all along.
All summer, they're hidden by chlorophyll, the green chemical leaves use to capture sunlight. As days shorten and cool, leaves stop making food, and the chlorophyll breaks down, revealing them.
Reds are different: some trees make new red pigments in autumn.