Here is two of my OSL shaders for converting Color Temperature in Kelvin degree to RGB color (in both linear and sRGB).
- The improved version is quite accurate with raw blackbody color data provided by Mitchell Charity.
These two shaders originally intended for 3ds Max and work with Corona and V-Ray and other engines that support native 3ds Max OSL Map but it might work blender as well. (maybe with a little bit of modification)
two OSL shader to convert kelvin to RGB colors