Wavelength to Colour Converter
Enter a wavelength between 380 and 780 nm (and a medium index if needed) to get its colour swatch, hex code, band name, frequency, photon energy and wavenumber.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Enter a wavelength
In nanometres.
- 2Enter a medium index
1 for vacuum or air.
- 3See the colour
Hex and RGB.
- 4Read the physics
Frequency, energy and wavenumber.
Informazioni su questo strumento
Each wavelength of visible light, from about 380 nm (violet) to 780 nm (deep red), corresponds to a pure spectral colour. Screens cannot show these colours exactly, because pure spectral colours lie outside the sRGB range, but a good approximation helps in teaching, data visualisation and laser or LED work. This converter gives an RGB and hex colour with the classic Bruton algorithm and adds the physical quantities of the light: frequency, photon energy and wavenumber.
Who this is for
Students and teachers of physics and chemistry, spectroscopy users, designers colouring spectra, and LED and laser hobbyists.
Spectral bands
| Band | Wavelength | |---|---| | Violet | 380–450 nm | | Blue | 450–495 nm | | Green | 495–570 nm | | Yellow | 570–590 nm | | Orange | 590–620 nm | | Red | 620–750 nm | Below 380 nm is ultraviolet, above about 750 nm infrared. Band edges vary between sources.
The colour approximation
Dan Bruton's algorithm interpolates linearly between primary colours across the spectrum, dims the colours near the edges where the eye is less sensitive, and applies a gamma of 0.8. It is a visual approximation, not a colorimetric conversion with CIE colour-matching functions.
Physical quantities
- Frequency f = c / λ, in terahertz. - Photon energy E = h c / λ: 1239.84 / λ(nm) in electronvolts. - Wavenumber 1/λ in cm⁻¹, common in spectroscopy. In a medium of index n, the wavelength shortens to λ/n while frequency stays the same.
Typical sources
- Red laser pointer: 650 nm (1.91 eV) - Helium-neon laser: 633 nm - Sodium lamp: 589 nm - Green laser: 532 nm - Blue LED: about 450 nm - Violet laser: 405 nm
Good practice
Use the hex colour for illustrations, not for colour measurements. Monitors differ, and saturated spectral colours cannot be shown exactly.
Why the eye sees colour
The retina has three types of cones, most sensitive near 420 nm (S), 534 nm (M) and 564 nm (L). The colour we see depends on how strongly each type responds. A mixture of red and green light can look exactly like spectral yellow, which is how screens create colours with only three primaries.
Brightness and sensitivity
In daylight the eye is most sensitive at about 555 nm, the peak of the CIE photopic luminosity function; at night, rods shift the peak to about 507 nm. That is why green lasers look much brighter than red or blue lasers of the same power, and why the swatches near the ends of the spectrum are drawn darker.
Using the hex code
Paste the hex code into design software to colour a spectrum diagram, a wavelength legend or a chart of emission lines. For printed materials, convert to CMYK in your design tool, and expect the most saturated colours to look duller on paper than on screen.
Worked example
550 nm appears yellow-green (#a3ff00 in this approximation). Its frequency is 545 THz, photon energy 2.25 eV and wavenumber 18,182 cm⁻¹. In water (n = 1.33) its wavelength would be about 414 nm, while its colour stays the same.
Limits
An approximate display colour, not an official colorimetric value.
Esempio svolto
550 nm is yellow-green with a photon energy of 2.25 eV.
In breve
- Categoria: Matematica e scienze
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: Approximate sRGB rendering of spectral colours after Bruton (1996) with intensity fall-off at the edges of vision and γ = 0.8; photon energy E = hc/λ with h and c exact in the SI (2019); colour bands after the CIE vocabulary (CIE S 017)
Domande frequenti
What colour is 550 nm?
Yellow-green, near the peak of eye sensitivity.
How do I convert wavelength to photon energy?
E (eV) = 1239.84 / λ (nm).
Why can't screens show pure spectral colours?
They lie outside the sRGB colour gamut.
What is the visible range?
About 380 to 780 nm.
Does wavelength change in water?
Yes, it divides by the refractive index; frequency stays.
Is my data stored?
No. Everything is calculated in your browser.
