Well, grass and other plants' leaves are green because they contain a green pigment. The pigment is green because green absorbs sunlight needed for the plant to create its food and survive. This called photosynthesis. The name comes from photo, meaning light, which the green absorbs.
Why is it that whenever I check this topic I answer like that?