Kellogg’s has apologized for a cereal-box cartoon that featured a bunch of light-colored Corn Pops hanging out in a mall — while a darker-skinned Pop scrubs the floor.

Pictures showing the packaging surfaced on social media and prompted the company to respond.

“Hey @KelloggsUS why is literally the only brown corn pop on the whole cereal box the janitor?” asked Marvel Comics writer Saladin Ahmed. “[T]his is teaching kids racism.”

“Yes [it’s] a tiny thing, but when you see your kid staring at this over breakfast and realize millions of other kids are doing the same ... ” he added in a follow-up Twitter post..

Kellogg’s K, +0.11% responded to Ahmed’s tweet within hours, saying it was sorry and would be replacing the cartoon with something more sensitive.

“Kellogg is committed to diversity & inclusion,” the company said. “We did not intend to offend — we apologize. The artwork is updated & will be in stores soon.”

Some Twitter users tried to shed a positive light on the existing image.

“He is the only one with a job,” one person said, describing the “brown” pop.

“Also … why is he the only one wearing clothes!?” another user asked.

An expanded version of this report appears at NYPost.com.