# Conversion formula from spectrophotometer readings to any standard color space profile?

I have readings of colors from a spectrophotometer that records across the human visible color spectrum 390nm to 790nm intervals. I'd like to convert this into any color space, could be CIE XYZ, HSL, CIE-Lab, etc. Any color temperature is okay.

-

The tristimulus values for CIEXYZ can be obtained by integrating the spectral curve with three distinct weight curves.

From XYZ there are documented formulas to convert to Lab, HSL, CSV, ...

http://www.zeiss.com/c12567bb00549f37/Contents-Frame/80bd2fe43b50aa3ec125782c00597389

http://en.wikipedia.org/wiki/CIE_1931_color_space

http://en.wikipedia.org/wiki/Lab_color_space#CIE_XYZ_to_CIE_L.2Aa.2Ab.2A_.28CIELAB.29_and_CIELAB_to_CIE_XYZ_conversions

-
If you use Matlab, with Spectral and XYZ Color Functions you can obtain RGB values using the function spectrumRGB.