A light-emitting diode, LED, filament comprising: a carrier, having a first side; a plurality of LEDs arranged on said first side, said plurality of LEDs comprising: at least one LED of a first type adapted to emit light having a first peak wavelength in the range 400 to 500 nm; at least one LED of a second type adapted to emit light having a second peak wavelength in the range 500 to 570 nm; at least one LED of a third type adapted to emit light having a third peak wavelength in the range 590 to 680 nm; and an encapsulant encapsulating at least the at least one LED of the first type, and at least partly encapsulating the LEDs of the second type and the third type; wherein said encapsulant comprises a wavelength converting material having a higher absorption coefficient for said first peak wavelength than for said second peak wavelength and said third peak wavelength; wherein said wavelength converting material has an emission band extending at least from 500 to 650 nm, and wherein said LED filament is adapted to emit light with at least a first correlated color temperature, CCT, based only on light emitted by the at least one LED of the first type; and said LED filament is adapted to emit light with at least a second CCT based on light emitted by the at least one LED of the first type, the at least one LED of the second type, and the at least one LED of the third type; wherein a difference between the first CCT and the second CCT is in the range 3000-5300 K. a carrier, having a first side; a plurality of LEDs arranged on said first side, said plurality of LEDs comprising: at least one LED of a first type adapted to emit light having a first peak wavelength in the range 400 to 500 nm; at least one LED of a second type adapted to emit light having a second peak wavelength in the range 500 to 570 nm; at least one LED of a third type adapted to emit light having a third peak wavelength in the range 590 to 680 nm; and an encapsulant encapsulating at least the at least one LED of the first type, and at least partly encapsulating the LEDs of the second type and the third type; wherein said encapsulant comprises a wavelength converting material having a higher absorption coefficient for said first peak wavelength than for said second peak wavelength and said third peak wavelength; wherein said wavelength converting material has an emission band extending at least from 500 to 650 nm, and wherein said LED filament is adapted to emit light with at least a first correlated color temperature, CCT, based only on light emitted by the at least one LED of the first type; and said LED filament is adapted to emit light with at least a second CCT based on light emitted by the at least one LED of the first type, the at least one LED of the second type, and the at least one LED of the third type; wherein a difference between the first CCT and the second CCT is in the range 3000-5300 K. at least one LED of a first type adapted to emit light having a first peak wavelength in the range 400 to 500 nm; at least one LED of a second type adapted to emit light having a second peak wavelength in the range 500 to 570 nm; at least one LED of a third type adapted to emit light having a third peak wavelength in the range 590 to 680 nm; and an encapsulant encapsulating at least the at least one LED of the first type, and at least partly encapsulating the LEDs of the second type and the third type; wherein said encapsulant comprises a wavelength converting material having a higher absorption coefficient for said first peak wavelength than for said second peak wavelength and said third peak wavelength; wherein said wavelength converting material has an emission band extending at least from 500 to 650 nm, and wherein said LED filament is adapted to emit light with at least a first correlated color temperature, CCT, based only on light emitted by the at least one LED of the first type; and said LED filament is adapted to emit light with at least a second CCT based on light emitted by the at least one LED of the first type, the at least one LED of the second type, and the at least one LED of the third type; wherein a difference between the first CCT and the second CCT is in the range 3000-5300 K.