answered Jan 17 '13
Extending Alexander's correct answer here is a similar question with code the convert to RGB.