There is no way that i know of. You can script this on the fly if you want by seeting the color of some invisible or offscreen object and then putting the color of the object back into a variable. The other way around is harder - you have to script / use a lookup table.