Cheers IdolNinja, been digging around this site for about a week now lots of good stuff.
Anyway did some experimenting if it helps anyone else, it turns out its just a simple fraction of each color channel.
Using 0,0,0 is black and 1,1,1 is white so multiplying the value by 255 will get the...