When power is applied to an RGB LED, the electricity causes the chemical reaction needed to produce light. The anode (the positive lead) is connected to the external power supply and transmits electrons from the battery to the cathode (the negative lead). This electron flow generates light.