I noticed that some forum members in the past have wondered about the color values in Hals skin-files. I think I finally figured out the right way to calculate a color number.
The formula goes:
(Red) + (256*Green) + (256*256*Blue) = color number
At least, this formula seems to do the trick for me.