From left to right, this illustration shows the star HD209458, the extrasolar planet named HD209458b, the spectrograph representing the STIS instrument on Hubble, and the resulting spectral signature of sodium. You can see that sodium's spectral signature (the two dark lines in the rainbow spectrum) are in the yellow band of visible light which means sodium can be measured using the STIS instrument.
Courtesy of STScI