A pigment is a compound that absorbs a particular wavelength of visible light. Chlorophyll is a green pigment contained in thylakoid membranes of chloroplasts that is used in photosynthesis by plants. In bacteria that also perform photosynthesis, chlorophylls are in the plasma membrane.