The findings suggest that Obama's problem is close to homeamong his fellow Democrats, particularly non-Hispanic white voters. Just seven in 10 people who call themselves Democrats support Obama, compared to the 85 percent of self-identified Republicans who back McCain.
The survey also focused on the racial attitudes of independent voters because they are likely to decide the election.
Lots of Republicans harbor prejudices, too, but the survey found they weren't voting against Obama because of his race. Most Republicans wouldn't vote for any Democrat for presidentwhite, black or brown.
Not all whites are prejudiced. Indeed, more whites say good things about blacks than say bad things, the poll shows. And many whites who see blacks in a negative light are still willing or even eager to vote for Obama.
On the other side of the racial question, the Illinois Democrat is drawing almost unanimous support from blacks, the poll shows, though that probably wouldn't be enough to counter the negative effect of some whites' views.
Race is not the biggest factor driving Democrats and independents away from Obama. Doubts about his competency loom even larger, the poll indicates. More than a quarter of all Democrats expressed doubt that Obama can bring about the change they want, and they are likely to vote against him because of that.
Three in 10 of those Democrats who don't trust Obama's change-making credentials say they plan to vote for McCain.
Still, the effects of whites' racial views are apparent in the polling.
Statistical models derived from the poll suggest that Obama's support would be as much as 6 percentage points higher if there were no white racial prejudice.
But in an election without precedent, it's hard to know if such models take into account all the possible factors at play.
The AP-Yahoo poll used the unique methodology of Knowledge Networks, a Menlo Park, Calif., firm that interviews people online after randomly selecting and screening them over telephone. Numerous studies have shown that people are more likely to report embarrassing behavior and unpopular opinions when answering questions on a computer rather than talking to a stranger.
Other techniques used in the poll included recording people's responses to black or white faces flashed on a computer screen, asking participants to rate how well certain adjectives apply to blacks, measuring whether people believe blacks' troubles are their own fault, and simply asking people how much they like or dislike blacks.
"We still don't like black people," said John Clouse, 57, reflecting the sentiments of his pals gathered at a coffee shop in Somerset, Ohio.
Given a choice of several positive and negative adjectives that might describe blacks, 20 percent of all whites said the word "violent" strongly applied. Among other words, 22 percent agreed with "boastful," 29 percent "complaining," 13 percent "lazy" and 11 percent "irresponsible." When asked about positive adjectives, whites were more likely to stay on the fence than give a strongly positive assessment.
Among white Democrats, one-third cited a negative adjective and, of those, 58 percent said they planned to back Obama.