Chlorophyll is the molecule that catches the light. You have met it as the green of leaves: a big, flat ring with a magnesium atom at the centre.
Chlorophyll a, the main kind, is C₅₅H₇₂MgN₄O₅. Its big ring is built from four smaller five-membered rings, each holding one nitrogen atom, joined by single carbon atoms. The four nitrogens face inward and hold the magnesium between them, and a run of alternating double bonds goes all the way round the ring.
The long tail is a hydrocarbon chain of 20 carbon atoms, joined to the ring by an ester link. Like the tail of a soap molecule, it mixes with oily things: it holds chlorophyll in the stacked membranes inside the chloroplast, which are made of fat-like molecules.
Red and blue
The longer a run of alternating double bonds, the further toward red the light it absorbs. Chlorophyll's run is long and closes into a ring, and its electrons have two main jumps they can make. One matches blue light and the other red light. Green light, in between, is barely absorbed, so leaves send it back to your eyes.
Chlorophyll b, a close relative, carries a -CHO group where chlorophyll a has a -CH₃. Its peaks sit at about 453 nm and 642 nm, so it catches some of the light chlorophyll a misses. Carotenoids such as beta-carotene catch blue-green light and pass its energy on as well.
Passing the energy on
In a chloroplast, chlorophyll molecules sit in proteins, a few hundred working together. When one absorbs light, the energy hops from molecule to molecule until it reaches a reaction centre, a special pair of chlorophyll molecules. There the energy drives an electron right out of the chlorophyll and on along a chain of other molecules. At that moment, the energy of light becomes chemical energy.