Attention beach goers: Mindy Kaling has a body positive message for you.

The actress, 40, took to Instagram Friday to share photos of herself in a couple of bikinis along with an encouraging message to her over 4 million followers.

"IDK who needs to hear this but…," she wrote. "WEAR A BIKINI IF YOU WANT TO WEAR A BIKINI. You don't have to be a size 0."

She also posted a video of herself sharing a story about what changed her perspective on rocking a bikini no matter your size.

"My very best friend in the world, Jocelyn, is from Hawaii, and I would go and visit her when I was in college, and what I was struck about Hawaii is that everybody wears bikinis," she recounted. "It does not matter what your body type is. You rock a bikini cause you're in Hawaii. And there's so much body positivity there that I, who was always really shy about my body, would wear bikinis."

Kaling welcomed her first child, daughter Katherine in 2017.

More:Mindy Kaling won't talk about daughter's father, but opens up on finding her maternal instinct

More:Mindy Kaling addresses backlash from supporting comedian Aziz Ansari: He's a 'good person'