A lawyer representing one of the alleged victims of disgraced comic Bill Cosby is vowing to show sex tapes which were secretly recorded at the Playboy Mansion in a civil court case.

Playboy poobah Hugh Hefner’s outrageous orgies were a staple at the party palace from the 1970s until recently.

But the late softcore mogul had reportedly ditched the sex tapes into the Pacific Ocean as his life ebbed away.

Not so, according to lawyer Spencer Kuvin. He has uncovered a treasure trove of recordings involving “dozens” of high-profile celebrities at the hedonistic fleshfests.

Kuvin said the tapes were handed over by Playboy Enterprises and appeared to have been professionally edited and “produced.”

“I think there’s a high probability Hefner was dumping tapes that not only included Cosby, but others he was trying to protect,” Kuvin told Radar.

Now, Kuvin wants to use the tapes to prove longtime Hefner pal Cosby drugged and sexually assaulted his client, Chloe Goins, who was 18 at the time of the alleged assault in 2008.

In addition, the Florida lawyer wants the raw CCTV footage from the wild parties dating to the 1990s so he can review scenes that had been edited out of the sexxx-rated videos.

Hefner died at age 91 in September 2017 and claimed he had junked the tapes.

Goins — who is now 28 — claims the Fat Albert creator gave her a drink at the Playboy party. She later awoke naked and Cosby was biting her toes, his pants around his ankles.

The 81-year-old Cosby is currently serving a minimum three-year prison sentence for aggravated indecent assault against Toronto native Andrea Constand.

Goins is one of 33 women to bring civil cases against the former Jello pitchman.

Kuvin said members of his legal team have spent “hundreds of hours” watching the tapes.