There was a brief period of time, say from the 60s to the early 10s, where offensive takes in public were slightly more tolerated, but that's what's in a lot of peoples memory. I'm sure it waxes and wanes.
Either way it's not as personally damaging to be accused of being a racist in 2022 as being accused of being a communist in 1952, let alone before that when expressing the wrong opinions loudly enough could get you tarred and feathered.