I think you overestimate how much the professed beliefs of the region coincide with the actual beliefs. Having lived all over the country SF is one of the more hypocritical places I’ve been. You don’t see nearly as many Black Lives Matter signs in Dallas for instance, but what you do see are far more middle class black families living side by side middle class white families.
For more on the Bay Area’s legacy of racism, highly suggest reading Richard Rothstein’s _The Color of Law_.