The judge, also black, shot back at a defiant, rambling Hassaun McFarlane, telling him it would be impossible for the parking agents to know the color of his skin since he wasn’t even in the car.

“Is there any consideration that the police be lying — because I’m black, and I drive a nice car,” McFarlane told Administrative Law Judge Marisa Miranda on July 9, according to audio recordings of the hearings obtained by The Post.

“Generally, parking violations are when you’re not in the vehicle, so they didn’t know what color you were,” Miranda said flatly, annoyed at the defendant’s claim.

“That’s funny to me,” McFarlane said, “because I get a lot of my tickets in the vehicle, which I find ironic, which I told them that. ‘You’re writing me tickets while I’m sitting in the car.’

Instead of appealing the tickets online or by mail, he went to court without evidence, just testimony that police were out to get him.

“I’m not driving a hooptie. I drive all exotic cars, and I’m young, and every time I get out, I’m having parking about 22 feet away,” McFarlane said.

“You being a black woman and, I don’t know, maybe you and I have some understanding that other men who drive nice cars are a little bit more, you know, what’s the word, detailed or prioritized or profiled, so I mean my ticket, this is ridiculous.”

He even said police would know he was a minority by the neighborhoods where he parked.

“Not guilty, the police lying. I didn’t do what they accused me of doing. I’m going to plead not guilty on all of those. That’s what I’m ¬doing,” he said.

McFarlane also made sure to note that he is the boyfriend of Noerdlinger, the embattled top aide to Mayor de Blasio’s wife.

“She’s the chief of staff for the first lady, Chirlane McCray, so I’m basically the driver,” he said.

Miranda didn’t care. She found him guilty and ordered him to pay $420 in fines.

According to the Department of Finance, Noerdlinger still owes the city $875.61 for the nine tickets and has set up a payment plan.

McFarlane has called cops “pigs” on social media. He has a rap sheet that includes a homicide, conspiring to run a cocaine operation and nearly running a cop off the road in Edgewater, NJ, last year.

Noerdlinger, a former aide to the Rev. Al Sharpton, was given a free pass by the mayor after it was revealed that she didn’t disclose on her background check that she lives with a convicted felon.

City Hall spokeswoman Rebecca Katz stood behind Noerdlinger.

“As we’ve said before, no one at City Hall, including Rachel, supports anti-cop views,” Katz said.

“The NYPD does a fantastic job serving the people of this city. And no one here condones attempts by anyone to get special treatment.”