A class of light-absorbing pigments used in photosynthesis.