A light-absorbing compound that functions as an accessory pigment in photosynthesis.