Clever Quest Lab ← Labs

Light Sources & Spectra

Hot bodies, glowing gases and everyday lamps, seen through a virtual spectroscope.

Spectroscope

Element
View
Starting level n = 3
Jumps down to
Source
LED type

Tri-phosphor tube: mercury lines plus blue, green and red phosphor bands.

Zoom 1×

Click or tap the strip or the graph to read a wavelength. Keyboard: focus the strip or graph, arrow keys move the cursor, + and − zoom, [ and ] jump between lines.

Blackbody readouts

Temperature
Peak λmax = b/T
Power per m² σT⁴
Peak lies in
Peak spectral radiance
Share of the power in 380–750 nm
At the cursor
–

Approximate colour of the glowing body

Selected line

Wavelength (air)
–
Colour
–
Photon energy
–
Frequency
–
Relative intensity (NIST)
–
Transition
–

    Transition

    Jump
    Photon energy ΔE
    Frequency
    λ in vacuum
    λ in air
    Measured in air (NIST)
    Region

    All series up to n = 8 on a logarithmic wavelength scale; dashed ticks are series limits. Only the Balmer series reaches the visible band.

    Light bulb

    Brightest wavelength (visible)
    Chromaticity x, y
    Colour temperature
    Distance from blackbody colour (Duv)

    Colour of this light, as a screen can show it

    Graph

    Pinned curves stay as dashed lines (up to 4) so you can compare temperatures.

    Spectroscope

    Drag the strip sideways to pan when zoomed in.

    Compare with a blackbody

    Both curves are scaled to the same brightness. Same colour does not mean the same spectrum.

    Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves the tab, temperature, pinned curves and spectroscope settings on this device.

    Added

    How to use it

    Pick a tab. Blackbody shows how the glow of a hot object changes with temperature. Elements shows the bright lines of hot hydrogen, helium, sodium, mercury and neon, or the dark lines the same gases cut out of white light. Hydrogen atom links those lines to the energy levels of the electron. Light sources compares a light bulb, sunlight, a white LED and a fluorescent tube.

    The strip at the top is a virtual spectroscope: light spread out by wavelength, violet on the left and red on the right, as a prism or a grating shows it. The graph below shows the same light as a curve.

    Controls

    How it works

    Everything glows because of its temperature. An ideal emitter, called a blackbody, follows Planck’s law, where h is Planck’s constant, c the speed of light and k Boltzmann’s constant:

    Bλ(λ, T) = (2hc² / λ⁵) · 1 / (ehc/(λkT) − 1)

    A hotter body peaks at a shorter wavelength (Wien’s displacement law) and radiates far more power per square metre (Stefan–Boltzmann law):

    λmax = b / T,  b = 2.898 × 10−3 m·K     M = σT⁴,  σ = 5.670 × 10−8 W·m−2·K−4

    The swatch weights the spectrum with the CIE 1931 colour-matching functions (from the official CIE table in 5 nm steps) and converts it to sRGB. Screens cannot show pure spectral colours, so the strip shows them as saturated as possible and lifts the dim violet and deep-red ends a little.

    A hot, thin gas emits only at the wavelengths of jumps between the energy levels of its atoms, which gives a line spectrum. White light passing through the gas loses the same wavelengths, which gives dark absorption lines. For hydrogen the levels are En = −13.6 eV / n², and the wavelengths follow the Rydberg formula:

    1/λ = RH (1/nf² − 1/ni²),  RH = 1.0968 × 107 m−1     E = hc/λ ≈ 1239.8 eV·nm / λ

    Only jumps down to n = 2, the Balmer series, land in the visible range. The formula gives vacuum wavelengths; the page also converts them to air, as tables list visible lines. It ignores the tiny fine-structure splitting, so its air values differ from the measured lines by up to about 0.01 nm. Wavelengths and relative intensities of the five elements come from the NIST Atomic Spectra Database (air wavelengths); real intensities depend on the lamp.

    The lamps are simple models: the bulb is a blackbody at the filament temperature, sunlight a 5772 K blackbody with the main Fraunhofer lines, the white LED a blue peak at 450 nm plus broad phosphor bands, and the fluorescent tube mercury lines plus blue, green and red phosphor bands. The correlated colour temperature is the temperature of the blackbody whose colour is closest in the CIE 1960 uv diagram. For light as a wave, see the wave simulator; for prisms and lenses, ray optics.

    Things to try

    Frequently asked questions

    The Sun’s peak is near 500 nm. Why does sunlight look white?

    Its spectrum is broad and covers all visible colours fairly evenly, which the eye sees as white. The colour at the peak is not the colour of the light.

    Why do stars have different colours?

    Their surfaces have different temperatures: cool red stars are around 3000 K, the Sun 5772 K, and blue-white stars more than 10 000 K.

    Why does a cool gas make dark lines?

    Its atoms absorb photons that match a jump up from an occupied level and send them out again in all directions, so less of that wavelength reaches you. Cool sodium vapour absorbs the yellow D lines strongly. The visible lines of hydrogen, helium, mercury and neon start from excited levels, so those gases absorb them only when hot, as in a star’s atmosphere.

    Is a white LED a blackbody?

    No. A semiconductor chip makes blue light and a phosphor turns part of it into yellow (and red in warm-white LEDs). Its colour temperature only says which blackbody looks the same colour.

    Sources