A colour changing LED isn’t one LED in a package but three LEDs along with a small computer to drive them. The LED is made up of red, green and blue LEDs each of which can be controlled by a microcontroller. This is still done using the three basic red, green & blue elements.