The following table contains links to mathematical equations for converting among various CIE color representations. An implementation of these may be found in my CIE Color Calculator. You can see from this table that some color conversions may be accomplished by single steps, while others may require several intermediate steps to reach the final goal.
• Color differences
• Computing RGB-to-XYZ and XYZ-to-RGB matrices.
• Murray-Davies dot gain equation.