(Photo by Alberto E. Rodriguez/Getty Images)

Taraji P. Henson says she lost out on a role in “St. Vincent” despite the fact that it had been specifically written for her.

She wrote about the loss of the role, which went to Naomi Watts, in her memoir “Around the Way Girl,” saying that Theodore Melfi had written the role specifically for her.

Leaked TV star salaries reveal pay gap between black and white actors

“It was a meaty gig. I would have loved it,” Henson wrote. “Alas, I couldn’t get served at that particular restaurant.”

Henson said that she is used to not getting roles, but this one hit hard because it should have been hers.

“Time and again, I’ve lost roles because someone with the ability to green-light a film couldn’t see black women beyond a very limited purview he or she thought ‘fit’ audience expectations,” she wrote.