The two who come to mind are Orson Scott Card and Robert Heinlein.
Heinlein's Sixth Column is outright race based, while Friday is pretty much all about a strong woman who overcomes all obstacles to achieve happiness.
Card's Speaker for the Dead is all about understanding others and doing the right thing. But later he goes full out white supremacist homophobe.
Any others?
EDIT:
Sorry I wasn't clear with the post. What astounds me is authors like Heinlein and Card can write amazing fiction that calls on us to transcend our prejudices, while personally holding some of those prejudices.
That's what I was hoping to explore.