A lighting system for emitting light of a controlled hue and of a controlled intensity, the lighting system comprising: a light-emitting diode, LED, configured to emit light having a hue that varies in response to variations in a voltage applied to the LED , the emitted light having an intensity that varies in response to variations in a duty-cycle of the voltage applied to the LED ; and a controller configured to receive a command signal having both AC and DC components that result in the command signal having a periodic peak voltage and a periodic valley voltage , the peak voltage being indicative of the controlled hue, and a ratio of the valley voltage to the peak voltage indicative of the controlled intensity, the controller comprising: a peak detector that is configured to detect the peak voltage ; a valley detector that is configured to detect the valley voltage ; and characterized in that , the controller further comprises: a pulse generator that generates a pulse stream having a pulse-voltage magnitude substantially equal to the detected peak voltage and a pulse-voltage duty cycle substantially equal to the ratio of the detected valley voltage to the detected peak voltage , wherein the generated pulse stream is applied to the LED resulting in light emission of the controlled hue and of the controlled intensity. a light-emitting diode, LED, configured to emit light having a hue that varies in response to variations in a voltage applied to the LED , the emitted light having an intensity that varies in response to variations in a duty-cycle of the voltage applied to the LED ; and a controller configured to receive a command signal having both AC and DC components that result in the command signal having a periodic peak voltage and a periodic valley voltage , the peak voltage being indicative of the controlled hue, and a ratio of the valley voltage to the peak voltage indicative of the controlled intensity, the controller comprising: a peak detector that is configured to detect the peak voltage ; a valley detector that is configured to detect the valley voltage ; and characterized in that , the controller further comprises: a pulse generator that generates a pulse stream having a pulse-voltage magnitude substantially equal to the detected peak voltage and a pulse-voltage duty cycle substantially equal to the ratio of the detected valley voltage to the detected peak voltage , wherein the generated pulse stream is applied to the LED resulting in light emission of the controlled hue and of the controlled intensity. a peak detector that is configured to detect the peak voltage ; a valley detector that is configured to detect the valley voltage ; and characterized in that , the controller further comprises: a pulse generator that generates a pulse stream having a pulse-voltage magnitude substantially equal to the detected peak voltage and a pulse-voltage duty cycle substantially equal to the ratio of the detected valley voltage to the detected peak voltage , wherein the generated pulse stream is applied to the LED resulting in light emission of the controlled hue and of the controlled intensity. a pulse generator that generates a pulse stream having a pulse-voltage magnitude substantially equal to the detected peak voltage and a pulse-voltage duty cycle substantially equal to the ratio of the detected valley voltage to the detected peak voltage , wherein the generated pulse stream is applied to the LED resulting in light emission of the controlled hue and of the controlled intensity. <EOS>