Wow, looks complicated. I'll dig into it once I get back from the cruise my wife and I are going on this next week!
Edit: Ok, so the 1st bit (purple you said) is the alpha bit, which always needs to be 1. then for the 5 binary bits for each color, is that the binary of the color in values...