An internal relay switches the LED color when the power switches from the headlight to turn signal and vice versa.