Within the leaf, the chloroplasts are the organelles that contain the chlorophyll, a green pigment that absorbs sunlight for photosynthesis.