The spectrum of a galaxy is formed by the combined light of all its stars and gas clouds.
Elliptical galaxies contain old, cool stars and no gas clouds. The cool stars combine to produce the continuous part of the spectrum
which, because of the low blue intensity, appears "yellowish" in color. Absorption lines appropriate for cool stars (H, Mg, Ca) are also seen.