The green coloration in the leaves of most plants is due to the presence of chlorophyll, a pigment used to absorb energy from the sun. ... The plant is investing energy to grow the new leaf, so avoidance of herbivory allows the investment a better chance to mature.