Hillary Clinton holds a commanding lead over rival Donald Trump in Pennsylvania, according to a new poll released hours before she accepts the Democratic Party's presidential nomination.

In a head-to-head matchup with the Republican nominee, Clinton leads Trump 50-41.

Though the Keystone State has voted for Democrats in the past six presidential elections, it could become a battleground state given recent national polls that show a tight race.

In a four-way match-up that includes Green Party nominee Jill Stein and Libertarian Gary Johnson, Clinton maintains her 9-point lead, 46-37. In that scenario, Johnson gets 5 percent support, Stein receives 3 percent and 9 percent remain undecided.

Though he isn't in the race anymore, Vermont Sen. Bernie Sanders is the most popular figure among Pennsylvania voters, ahead of President Obama, all nominees for president and vice president and the state's Senate candidates.

Sanders was seen favorably by 60 percent of Pennsylvania voters, and 29 percent had a negative view of him. He was followed by Obama (52-44), Clinton (44-48) and Trump (33-57).

The telephone poll of 500 likely voters was conducted July 25-27 and carries a margin of error of plus or minus 4.4 percentage points.