A lighting device (1) comprises a plurality of LEDs (11-14) producing light (21-24) of mutually different colors. The LEDs are driven in switching cycles (63) with a duty cycle controlled supply current of constant magnitude. In each switching cycle, each LED is first switched ON (61) and then switched OFF (62).
In a measuring mode, during one switching cycle (63B), all ON phases of all LEDs are briefly interrupted, except for one LED (11), so that a light sensor (70) measures the light from this one LED. This measurement can be used to adapt the duty cycle of this one LED. In the next switching cycle (63C), the interruption of the ON phases is compensated by extending the ON phases of all LEDs except said one LED, the extension having a duration equal to the duration (τD) of the interruption.