Kelly Osbourne is officially leaving E!'s Fashion Police after co-host Giuliana Rancic's comments on Zendaya's dreadlocks.

The 40-year-old Italian-American television personality sparked controversy for saying that the 18-year-old actress's hair looked as if she smelled of "patchouli oil and weed" while criticising her look at the 2015 Oscars.

Actress Zendaya attends the 87th Annual Academy Awards at Hollywood & Highland Center on 22 February, 2015 in Hollywood, California. Getty

The 30-year-old daughter of TV personality Sharon Osbourne and metal rocker Ozzy Osbourne, took to her Twitter account to express her disapproval.

Rancic apologised to Zendaya the following day during a brief E! News segment.

"I'd really like to address something that's weighing really heavy on my heart. I want to apologize for a comment that I made on last night's Fashion Police about Zendaya's hair," she said. "As you know, Fashion Police is a show that pokes fun at celebrities in good spirit, but I do realize that something I said last night did cross the line."

"I just want everyone to know that I didn't intend to hurt anybody, but I learned it's not my intent that matters. It's the result. And the result is people are offended, including Zendaya. And that is not OK. Therefore, I want to say to Zendaya, and anyone else out there that I hurt, that I'm so sincerely sorry. This really has been a learning experience for me. I learned a lot today and this incident has taught me to be a lot more aware of cliches and stereotypes, and how much damage they can do. And that I am responsible, as we all are, to not perpetuate them further. Thank you for listening," Rancic added.

Following the apology, Zendaya forgave Rancic for the comments about her hairstyle.

A photo posted by Zendaya (@zendaya) on

Though the issue was resolved, Kelly departed from the show.

"Kelly Osbourne is departing E!s "Fashion Police" to pursue other opportunities, and we would like to thank her for her many contributions to the series over the past five years, during which time the show became a hit with viewers. "Fashion Police" will return, as scheduled, on Friday, March 30th at 9:00 p.m. and no decisions have been made on her replacement," the network said in a statement.