With the Kings missing two key starters, the combination did just enough to make up for the absences and helped coach Dave Joerger earn his 200th career win.
Temple scored 23 points, Koufos had a season-high 18 points and 13 rebounds, and the Kings beat the Magic 94-88 on Friday night.
It was Temple's highest point total since Jan. 23 when he put up a career-best 34 points in Sacramento's 105-99 win over the Magic in Orlando.
''Sometimes you just feel like you play well against certain teams, and Orlando's one of those teams,'' said Temple, who made 21 of 27 shots in the two wins over the Magic this season. ''One of their writers asked me that during shootaround. I don't know. It is what it is.''
Vince Carter added 15 points and Skal Labissiere had eight points and seven rebounds for Sacramento before leaving with an injured left hip. The Kings have won three of five after losing their first four coming out of the All-Star break.
Koufos and Temple made rare starts with center Willie Cauley-Stein and rookie point guard De'Aaron Fox out nursing injuries and helped Sacramento complete a sweep of Orlando in a matchup of two struggling teams.
The duo shot a combined 16 of 22 and did most of their scoring in the second half when the Kings led by 15. Koufos had his first double-double since Feb. 11.
''I've had Kosta for four years and I've been talking about how valuable and how good of a player he is,'' Joerger said. ''He took a knee in the thigh early in the second half and plays 38 minutes. Fantastic.''
Carter, the 41-year-old former dunk king, pitched in with nine of his points in the fourth quarter to help Sacramento hold on.
Orlando played its first game since losing Evan Fournier to a torn left MCL he suffered Wednesday in Los Angeles. Fournier has said he is optimistic about returning before the end of the regular season.
''We weren't in sync and I didn't like that we didn't pay attention to details,'' Magic coach Frank Vogel said. ''We didn't make good decisions. We were just a little bit out of rhythm.''
Magic: Orlando missed eight of its first night shots to begin the game. . D.J. Augustin was questionable before the game because of a sore right ankle but he started and had 12 points with seven assists in 28 minutes.
Kings: Bogdan Bogdanovic went more than six quarters without scoring before making a 19-foot jumper early in the third quarter. ... Fox was held out after suffering a lower back strain in the first quarter of Wednesday's loss to New Orleans. ... Cauley-Stein missed his fourth straight game with a lower back strain. . Two-way player and fan favorite Jack Cooley scored the team's first six points of the fourth quarter.
Labissiere suffered a bruised hip while attempting to dunk on a lob pass from Buddy Hield in the first quarter. Labisssiere was fouled from behind by Jonathon Simmons, crashed hard to the court and lay there for several moments while being attended to by a team trainer before being helped to his feet. He returned and played 7 1/2 minutes in the third before going to the bench for good.
''That was a crash,'' Joerger said. ''Didn't look dirty to me but it was a violent landing.''
The two teams combined for 36 points in the first quarter. By comparison, three Sacramento opponents have had 36 or more in the first quarter this season.
Magic: Travel to Los Angeles to play the Clippers on Saturday.
Kings: Play at Denver on Sunday.