Click to email this to a friend (Opens in new window)

Click to share on Twitter (Opens in new window)

Click to share on Facebook (Opens in new window)

Prosecutors say rainbow-haired rapper Tekashi 6ix9ine should get up to three years in prison for violating a 2015 sweetheart plea deal by getting re-arrested twice and joining a gang.

Tekashi, aka Daniel Hernandez, showed up Thursday in Manhattan Supreme Court with four bodyguards and was supposed to be sentenced to three years’ probation for posting a lewd video of a half-dressed 13-year-old girl performing oral sex on a pal.

In the clip, he thrusts his hips behind her simulating a sex act, according to court papers.

He pleaded guilty in exchange for the no-jail sentence — but agreed not to get re-arrested and fulfill a host of other conditions, including an apology letter to the victim and her family.

Prosecutor Sara Weiss asked Justice Felicia Mennin to yank the deal after he was busted in Texas last January for choking a teen fan and collared a few months later in Brooklyn for driving on a suspended license and assaulting a cop.

“It’s the people’s position he should be sentenced to one to three years,” she told the judge.

The plea agreement also designated Tekashi, 22, as a youthful offender, which means that if he complied with the deal, he would have no criminal record.

In court papers, Weiss argued that Tekashi’s youthful offender status should also be pulled because of his “crime against a child, his arrests on new charges, and his continued use of social media to promote a culture of violence and glorify gang activity.”

She added, “He has not only become a successful recording artist, but is also now a self-admitted member of a violent gang called the 9 Trey Bloods.”

The “Gummo” rhymer flashes guns and brags about his gang connections in Instagram posts where he has over 9 million followers, the papers allege.

“Defendant’s behavior undermines any argument that the interests of justice are served by relieving him from the onus of a criminal record,” Weiss wrote.

Defense lawyers Ian Niles and Lance Lazzaro asked for more time to respond to the prosecutor’s allegations.

The judge ordered Tekashi to return to court Oct. 2 to learn his fate.

The face-tattooed rapper, wearing a navy and neon yellow tracksuit, declined to comment as he left the courthouse with his hired muscle, who repeatedly shoved a photographer.

He beefed up his security last month after a night out at a Queens strip club ended with his getting pistol-whipped, kidnapped and robbed.