visible spectrum

Wavelength to RGB Converter

Enter a wavelength in nanometers between 380 and 780 and get an approximate RGB value. For example, 400 gives #8300b5, a shade of violet.

 

 

 

 

More calculators like this one.

 

John D. Cook photo

 

Need help making applying math?