Generic suggestion, just for the record: convert the wavelength to the "Hue" of the HSV system, and then convert HSV to RGB. Remembering that RGB shows numerous impure colors, while a wavelength is a pure color, then such colors would have S=1.0 and V=0.5 in the HSV system. Still with this system I think there might be some problem with violets,
This may help: http://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb
– cantoni
Thank you @Cantoni!
– Duds
Generic suggestion, just for the record: convert the wavelength to the "Hue" of the HSV system, and then convert HSV to RGB. Remembering that RGB shows numerous impure colors, while a wavelength is a pure color, then such colors would have S=1.0 and V=0.5 in the HSV system. Still with this system I think there might be some problem with violets,
– epx