Former Brooklyn DA Charles Hynes needed a white trophy — so he framed John Giuca, the angry mother of the “Grid Kid” murder convict said a day after Giuca’s conviction was tossed on appeal.

Hynes was running in a close primary race against John Sampson, an African-American state senator, back in 2005 when Giuca was put on trial on the slimmest of evidence, his mom, Doreen Giuliano, told The Post in an emotional interview on Thursday.

Just weeks after Giuca and co-defendant Tony Russo were convicted for the shooting death of New Jersey college football star Mark Fisher, Hynes bested Sampson by just 4 percentage points, and went on to win a fifth term as DA.

“It wasn’t about Charles Hynes doing the right thing,” Giuliano said from the doorstep of her Prospect Park South home.

“It was about black and white,” she claimed.

“It was an election year, and we are predominantly a black [borough], Brooklyn.

“And in an election year, you just put away the black kids? You’re not getting the black vote,” she claimed.

“Charles Hynes took my son for the election of 2005.”

On Wednesday, 10 years into Giuca’s 25-to-life murder sentence, a panel of appellate judges unanimously ruled that prosecutors failed to tell jurors that a jailhouse snitch named John Avitto received special DA treatment for his testimony.

Fisher, 19, was last seen partying at Giuca’s house, and his body was recovered nearby, wrapped in a blanket from Giuca’s house.

Still, with no murder weapon and no forensics linking Giuca to the crime, the prosecution’s case rested heavily on testimony by Avitto and the other witnesses — who left jurors so convinced that they convicted him after just two hours of deliberations.

But Avitto would later recant his story, as did two of the other three key witnesses who helped put Giuca away, according to 2014 court documents.

Giuliano also had some choice words Thursday for her son’s lead trial prosecutor, Anna-Sigga Nicolazzi, who now is starring in her own true crime show.

On “True Conviction,” which premiered last month on the Investigation Discovery channel, Nicolazzi boasts that as a prosecutor, she won guilty verdicts in each of her 35 trials.

“The best years of John’s life, all his 20s, they took it so Anna-Sigga Nicolazzi can have 35 straight wins and look all pretty and cute for the public,” the mom railed Thursday.

“Anna-Sigga Nicolazzi did this and Charles Hynes, and it was all because of the election.”

Hynes, responding to the allegations, said, “This is a baseless claim supported by no facts whatsoever.” Nicolazzi declined to comment.

Giuca, now 34, has maintained his innocence and remains in jail pending a decision on whether current DA Eric Gonzalez will mount a retrial.

That decision is expected as early as Feb. 20, said Giuca’s lawyer, Mark Bederow.

Additional reporting by Emily Saul and Laura Italiano