A federal jury in Los Angeles on Thursday decided that Katy Perry and others must pay $2.8 million in damages in a copyright dispute over her 2013 song “Dark Horse.”

The verdict came three days after the jury found that Ms. Perry, her record company and other collaborators were liable for copyright infringement because parts of “Dark Horse” resembled “Joyful Noise,” a Christian rap song from 2008 by the artist Flame, whose real name is Marcus Gray.

According to the verdict, Ms. Perry must pay $550,000, while her label, Capitol Records, owes nearly $1.3 million. Ms. Perry’s five collaborators in writing the song were also ordered to pay, including the star producers Max Martin, who owes $253,000, and Dr. Luke, who owes $61,000 personally, while his company, Kasz Money Inc., owes $189,000.

The jury found that 22.5 percent of the profits from “Dark Horse” — which held the No. 1 spot on Billboard’s Hot 100 chart for four weeks in 2014 — were attributable to parts of “Joyful Noise.”