The leaves are green because there is chlorophyll in them. But in addition to green pigment, there are many pigments such as red pigment and yellow pigment in leaves, but the quantity is very small.
In spring and summer, the content of chlorophyll in leaves is much richer than other pigments, so the leaves show the green color of chlorophyll, while the colors of other pigments are invisible.