The wiki describes the means to set the color of a sun thus:
$SunRGBI:
Defines the color of the sun as well as it's intensity
Syntax: Value Value Value Value, (red, green, blue and intensity respectively)
I now have a list of color values for every spectral type, which will permit me to provide a correct star for every known system in the game. However, this list is in in more normal RGB formats. For instance, the largest star in Capella is of spectral Type G5, for which the color is: 255 230 183 (#ffe6b7). I have no idea how to convert these values to the unusual RGBI values as used in stars.tbl. Google didn't turn up any real help either. Any ideas?