Kesha has No. 1 album with 'Rainbow'

It's her first chart-topper in years.

— -- Kesha's "Rainbow" debuted this week at the top of the Billboard 200 album chart. "Rainbow" hit No. 1 with 116,000 in sales and equivalent streams.

The album was released earlier this month and is the singer's first since 2012 because of her legal battle with producer Dr. Luke.

The singer took to Twitter to thank her fans about what this new album means to her.

"Many days my music was simply a coping tool - anyone has the power to turn emotion into art SO MUCH LOVE," she wrote on Sunday.

many days my music was simply a coping tool - anyone has the power to turn emotion into art SO MUCH LOVE https://t.co/bPAzcSOI1X

— kesha (@KeshaRose) August 21, 2017

This is Kesha's second chart-topping album; her debut, "Animal," topped the charts in 2010.

Earlier in August, the singer appeared on "Good Morning America" and said this is her most personal record yet.

"I've written every song on this album and they're all so personal and this song I think is just really important because it talks about me personally going through something very hard, lots of very hard things, making it through, not giving up and finding empathy on the other side which is incredibly hard sometimes," she said.

The seven years, seven months and 10 days between chart toppers for Kesha is the longest period between number ones for a female artist since 2009.

many days my music was simply a coping tool - anyone has the power to turn emotion into art SO MUCH LOVE https://t.co/bPAzcSOI1X

This is Kesha's second chart-topping album; her debut, "Animal," topped the charts in 2010.

Earlier in August, the singer appeared on "Good Morning America" and said this is her most personal record yet.

"I've written every song on this album and they're all so personal and this song I think is just really important because it talks about me personally going through something very hard, lots of very hard things, making it through, not giving up and finding empathy on the other side which is incredibly hard sometimes," she said.

The seven years, seven months and 10 days between chart toppers for Kesha is the longest period between number ones for a female artist since 2009.