# Converting spectra to rgb colour

I am having trouble obtaining RGB colour values from the spectra of an object. I have the specific flux $F_\nu$ as a function of $\nu$ for each pixel of the image I'd like to make, but am unsure of how to turn this into RGB.

The proper method seems to be to calculate the $XYZ$ values by integrating the spectral power density $P(\lambda) = \nu^2 F_\nu /c$ against the CIE standard observer functions, then doing a linear transformation into $RGB$ space. However, I can not seem to find a reference that gives the normalization for the transformation into XYZ.

My question is: am I approaching this in the right way, and if so how is the transformation from spectra to $XYZ$ normalized? Thanks!