A dark or bright line in an otherwise uniform and continuous spectrum, resulting from emission or absorption of light.A spectral line is a dark or bright feature in an otherwise continuous spectrum, produced when atoms or molecules absorb or emit light at specific wavelengths. Each element and molecule has a unique set of spectral lines, like a fingerprint, revealing its presence and properties in distant objects. Spectral lines are the primary tool astronomers use to determine the composition, temperature, density, and motion of celestial bodies.
The connection between spectral lines and elements was established in the 1850s by Gustav Kirchhoff and Robert Bunsen, who showed that each element produces a unique line pattern. This laid the foundation for astrophysics.
When light passes through a gas, atoms absorb photons at energies matching electron transitions, creating dark absorption lines. Conversely, excited atoms emit photons at those same energies, producing bright emission lines. The exact wavelengths are determined by quantum mechanics — the discrete energy levels of electrons in atoms. By spreading light into a spectrum with a spectrograph, scientists can identify these lines and measure shifts (Doppler effect) to infer velocities.
Spectral lines are used in astronomy to measure the redshift of galaxies, in chemistry to identify substances, and in medicine for non-invasive diagnostics like pulse oximetry.
The element helium was discovered in 1868 as a bright yellow spectral line in the Sun's spectrum before it was found on Earth.


