How to model a light source using a spectral distribution curve for the color
To accomplish this you would require a wavelength to XYZ conversion, and then from XYZ to sRGB / REC.709 primaries conversion.

Make sure that you obtain linearized RGB values from your wavelengths. If you are using normalized wavelengths, display linear (0.0 to 1.0) would suffice.