Re: what's the g-code for color?
Probably however the OEM designs it... I would suspect if the printer can print three colors then there are 3 different feed motors? If so, each motor will be an additional "axis" on the machine, and by activating the proper motor to move, the right color will be selected. Color in and of itself is not referenced, but the control behind the color is. As stated, standard GCode had no idea what "color" even means...
Alternatively, maybe there is just a relay and the active color is selected by relay. That way, any of the colors can be driven by the same motor command, but the relay will "select" which color is active.
These are only 2 of MANY ways the OEM can choose to handle something like this, so with no further information about the specific system you are referring to, all we can do is guess at what they might have done...
CAD, CAM, Scanning, Modelling, Machining and more. http://www.mcpii.com/3dservices.html