Magnesium ion is present in the chlorophyll. Chlorophyll is a green photosynthetic pigment found in plants, algae, and cyanobacteria. Chlorophyll absorbs mostly in the blue and to a lesser extent red portions of the electromagnetic spectrum, hence it has intense green color.