In an era where racial and gender diversity are garnering more and more attention, equal pay is still an ongoing issue. However, Captain Marvel star Brie Larson has something to say about that.

At the Women in the World summit in New York, Larson discussed the gender wage gap with Vanity Fair, stating, "Money is actually something I'm very excited to talk about", Larson stated. "It's this thing that people think is super-icky-and that's the trap. The trap is they make you feel icky about it, so that you don't ask for what you deserve-because you know what the number is inside."

RELATED: Captain Marvel Has Out-Earned The Dark Knight-Here's Why That Matters

Last month, Larson made her Marvel Cinematic Universe debut as Captain Marvel, for which she was paid a hefty $5 million -- far more than her fellow MCU stars Robert Downey Jr. and Chadwick Boseman earned for their first solo films as Iron Man and the Black Panther respectively. Larson attributed her earnings to the women in the industry who came before her and paved the way for higher quotes.

"Lawyers use that as a comparison", she said. "Everybody's sort of building it up, and I'm just the next step in that."

Larson concluded with words of encouragement for women who are nervous about asking for higher pay, showing her more heroic side while doing so.

"When women talk to me about this, I say, 'You know, don't even do it for you, if that makes you feel weird right now'", she explained. "'Do it for the women that are gonna come after you. Do it for the next one. Do it for the future you, because you are helping. And if that can give you a little bit more of a stir and a fight, then do it. We need you.'"

While the wage gap is still a problem, Larson's words show that nobody, regardless of gender, should be afraid to ask for higher pay. And, like the character she plays in the MCU, she shows she's not one to back down when it comes to her beliefs or encouraging others.

RELATED: Why Avengers: Endgame Directors Lied About the Film's Title

Directed by Anna Boden and Ryan Fleck, Captain Marvel stars Brie Larson as Carol Danvers, Samuel L. Jackson as Nick Fury, Jude Law as Yon-Rogg, Clark Gregg as Phil Coulson, Lee Pace as Ronan the Accuser, Djimon Hounsou as Korath the Pursuer, Gemma Chan as Minn-Erva, Ben Mendelsohn as Talos, Lashana Lynch as Maria Rambeau, Algenis Perez Soto as Att-Lass, McKenna Grace as a young Carol Danvers and Annette Bening as the Supreme Intelligence. The movie is in theaters now.