Convert visible light wavelengths to RGB color values for physics, optics, and lighting design
Wavelength is the distance between successive peaks of a light wave, measured in nanometers (nm). The visible spectrum spans approximately 380nm (violet) to 780nm (red). Each wavelength corresponds to a specific color perceived by the human eye.
RGB (Red, Green, Blue) is an additive color model used in digital displays. Wavelength-to-RGB conversion approximates how a pure spectral color would appear on a screen, based on CIE color matching functions that model human color perception.