How do things absorb light?
When light rays hit a surface, some bounce off, but others are absorbed by atoms in the surface, warming it up very slightly. Each kind of atom absorbs particular wavelengths (colors) of light. The color of the surface depends on which wavelengths of light are absorbed and which reflected. You see a leaf as green because the leaf has soaked up all colors but green, and you see only the reflected green light.