A lighting device comprising a plurality of light emitting diodes, LEDs, the lighting device comprising: a first LED assembly (43a, 43b, 43c, 43d) comprising at least one LED of a first type having a first luminous flux output varying as a function of its junction temperature; a second LED assembly (44a, 44b, 44c, 44d) comprising at least one LED of a second type having a second luminous flux output varying as a function of its junction temperature, wherein the first luminous flux output decreases with increasing junction temperature at a first rate and the second luminous flux output decreases with increasing junction temperature at a second rate lower than the first rate, wherein the first LED assembly (43a, 43b, 43c, 43d) is connected in series to the second LED assembly (44a, 44b, 44c, 44d), and wherein the at least one of the LEDs of the first type is connected in parallel to a first resistor assembly (46, 46a, 46b) and the at least one of the LEDs of the second type is connected in parallel to a second resistor assembly (48, 48a, 48b), wherein the first and second resistor assembly each have a temperature-dependent resistance, characterized in that the resistance of the first resistor assembly (46, 46a, 46b) increases with increasing temperature of the first resistor assembly, and the resistance of the second resistor assembly (48, 48a, 48b) decreases with increasing temperature of the second resistor assembly in such a way to keep the ratio of the first luminous flux output to the second luminous flux output constant at least within a predetermined range under operating temperatures different from the nominal operating temperature of the first and second LED assembly. a first LED assembly (43a, 43b, 43c, 43d) comprising at least one LED of a first type having a first luminous flux output varying as a function of its junction temperature; a second LED assembly (44a, 44b, 44c, 44d) comprising at least one LED of a second type having a second luminous flux output varying as a function of its junction temperature, wherein the first luminous flux output decreases with increasing junction temperature at a first rate and the second luminous flux output decreases with increasing junction temperature at a second rate lower than the first rate, wherein the first LED assembly (43a, 43b, 43c, 43d) is connected in series to the second LED assembly (44a, 44b, 44c, 44d), and wherein the at least one of the LEDs of the first type is connected in parallel to a first resistor assembly (46, 46a, 46b) and the at least one of the LEDs of the second type is connected in parallel to a second resistor assembly (48, 48a, 48b), wherein the first and second resistor assembly each have a temperature-dependent resistance, characterized in that the resistance of the first resistor assembly (46, 46a, 46b) increases with increasing temperature of the first resistor assembly, and the resistance of the second resistor assembly (48, 48a, 48b) decreases with increasing temperature of the second resistor assembly in such a way to keep the ratio of the first luminous flux output to the second luminous flux output constant at least within a predetermined range under operating temperatures different from the nominal operating temperature of the first and second LED assembly.