Chlorophyll production is the primary factor in leaf color change. It produces a green hue and enables photosynthesis, but when levels reduce for autumn, carotenes create yellows and anthocyanins produce reds or pinks.
This shift happens slowly as trees prepare to conserve energy over winter by shedding leaves.