A green pigment, present in all green plants and in cyanobacteria, responsible for the absorption of light to provide energy for photosynthesis. Its molecule contains a magnesium atom held in a porphyrin ring.