A control module for controlling a luminaire comprising a first and a second light source, wherein the first and the second light source (111, 112) are adapted to generate white light at a first and a second correlated color temperature, CCT, respectively, wherein the light generated by the luminaire is a combination of the light generated by the first and the second light source, wherein the control module comprises: a color temperature providing unit for providing a desired color temperature, an assignment providing unit for providing an assignment list comprising a plurality of assignments, wherein each assignment comprises a predefined CCT to which a first assigned brightness value for the first light source and a second assigned brightness value for the second light source is assigned, and wherein the first and the second assigned brightness value are assigned to the predefined CCT such that the luminaire generates a light with the predefined CCT when the luminaire is controlled to operate the first and the second light source (111, 112) with the first and second assigned brightness value, respectively, a brightness value determination unit for determining a first and a second brightness value for the first and the second light source, respectively, based on an interpolation function interpolating the first and the second brightness values in dependency of a CCT, wherein the brightness value determination unit is adapted to determine the interpolation function based on the nearest predefined CCTs from the predefined CCTs provided in the assignment list, wherein the nearest predefined CCTs correspond to predefined CCTs of the assignment list that have a value nearest to the desired color temperature, and a control unit for controlling the luminaire such that the first and the second light source (111, 112) of the luminaire are operated to provide light with the first and the second brightness value, respectively. a color temperature providing unit for providing a desired color temperature, an assignment providing unit for providing an assignment list comprising a plurality of assignments, wherein each assignment comprises a predefined CCT to which a first assigned brightness value for the first light source and a second assigned brightness value for the second light source is assigned, and wherein the first and the second assigned brightness value are assigned to the predefined CCT such that the luminaire generates a light with the predefined CCT when the luminaire is controlled to operate the first and the second light source (111, 112) with the first and second assigned brightness value, respectively, a brightness value determination unit for determining a first and a second brightness value for the first and the second light source, respectively, based on an interpolation function interpolating the first and the second brightness values in dependency of a CCT, wherein the brightness value determination unit is adapted to determine the interpolation function based on the nearest predefined CCTs from the predefined CCTs provided in the assignment list, wherein the nearest predefined CCTs correspond to predefined CCTs of the assignment list that have a value nearest to the desired color temperature, and a control unit for controlling the luminaire such that the first and the second light source (111, 112) of the luminaire are operated to provide light with the first and the second brightness value, respectively.