ATLANTA — Wayne Ellington cracked the only smile he had in him in the press room late Wednesday night.

“We wanted to go out on a good note,’’ he said.

If this was the season finale, the Knicks got a rare win, 136-131, over the Hawks. They exploded for 67 points in the first half to take a 17-point lead.

But in the end, the Knicks (21-45) blew a 20-point advantage and needed overtime to repel Atlanta, right as the NBA suspended its season due to coronavirus concerns.

The Knicks blew a double-digit lead in the final 2:30 of regulation, but never trailed after Julius Randle hit a 3-pointer early in the extra period.

Randle finished with 33 points and RJ Barrett, off a miserable outing in Washington the previous night and playing with a swollen mouth, notched 26. Trae Young led the Hawks comeback with a game-high 42 points and 11 assists.

RJ Barrett drives to the basket during the Knicks' 136-131 OT victory over the Hawks.
RJ Barrett drives to the basket during the Knicks’ 136-131 OT victory over the Hawks.NBAE via Getty Images

The Knicks also got strong production from their 2018 draft picks, Mitchell Robinson and Kevin Knox, who combined to shoot 10 of 14. Robinson was 7 of 7 for 16 points. Knox, coming out of his recent shell, scored 12 points, making all three of his 3-pointers.

Atlanta veteran Vince Carter was inserted in the final seconds and hit a last-second 3-pointer in what could be his final game. Carter, who had announced last summer this would be his final season, was hugged and backslapped by several Knicks after the buzzer — which might not have been the healthiest thing to do.

“I heard the fans yelling it, I was still trying to win a game, but it was a surreal moment,’’ Hawks coach Lloyd Pierce said.