A thermoelectric generator, comprising: a first flow channel having an inlet and an outlet for passing a warm fluid, the inlet and the outlet of the first flow channel defining a first direction of flow for the warm fluid; a second flow channel having an inlet and an outlet for passing a cold fluid, the inlet and the outlet of the second flow channel defining a second direction of flow for the cold fluid; a plurality of thermocouple elements (3; 31, 32, 33) disposed between the first flow channel and the second flow channel and neighboring each other along the first direction of flow; a first contact member disposed between the plurality of thermocouple elements (3; 31, 32, 33) and a wall of the first flow channel, the first contact member comprising contact portions (41, 42, 43) associated with the individual thermocouple elements (3; 31, 32, 33), the contact portions (41, 42, 43) providing a heat conducting coupling between the respectively associated thermocouple elements (3; 31, 32, 33) and the wall of the first flow channel; and a second contact member disposed between the plurality of thermocouple elements (3; 31, 32, 33) and a wall of the second flow channel, the second contact member comprising contact portions (51, 52, 53) associated with the individual thermocouple elements (3; 31, 32, 33), the contact portions (51, 52, 53) providing a heat conducting coupling between the respectively associated thermocouple elements (3; 31, 32, 33) and the wall of the second flow channel; characterized in, that the sum of the thermal resistances of those contact portions (41, 51) of the first and second contact members (4, 5) that are associated with a first thermocouple element positioned along the first direction of flow upstream of a second thermocouple element, is bigger than the sum of the thermal resistances of those contact portions (42, 52) of the first and second contact members (4, 5) that are associated with the second thermocouple element. a first flow channel having an inlet and an outlet for passing a warm fluid, the inlet and the outlet of the first flow channel defining a first direction of flow for the warm fluid; a second flow channel having an inlet and an outlet for passing a cold fluid, the inlet and the outlet of the second flow channel defining a second direction of flow for the cold fluid; a plurality of thermocouple elements (3; 31, 32, 33) disposed between the first flow channel and the second flow channel and neighboring each other along the first direction of flow; a first contact member disposed between the plurality of thermocouple elements (3; 31, 32, 33) and a wall of the first flow channel, the first contact member comprising contact portions (41, 42, 43) associated with the individual thermocouple elements (3; 31, 32, 33), the contact portions (41, 42, 43) providing a heat conducting coupling between the respectively associated thermocouple elements (3; 31, 32, 33) and the wall of the first flow channel; and a second contact member disposed between the plurality of thermocouple elements (3; 31, 32, 33) and a wall of the second flow channel, the second contact member comprising contact portions (51, 52, 53) associated with the individual thermocouple elements (3; 31, 32, 33), the contact portions (51, 52, 53) providing a heat conducting coupling between the respectively associated thermocouple elements (3; 31, 32, 33) and the wall of the second flow channel; characterized in, that the sum of the thermal resistances of those contact portions (41, 51) of the first and second contact members (4, 5) that are associated with a first thermocouple element positioned along the first direction of flow upstream of a second thermocouple element, is bigger than the sum of the thermal resistances of those contact portions (42, 52) of the first and second contact members (4, 5) that are associated with the second thermocouple element.