That's a pretty sweeping statement.
The official vote leave campaign doesn't represent everybody who voted to leave. For me, it has always been about sovereignty, not some superior nationalism or xenophobia. In fact, there's even a socialist/left wing case for local rule, the SNP being a good example of that, and traditional eurosceptics included old Labour and Corbyn himself. Is he a racist?
Yes, there are plenty of xenophobic, narrow minded leavers, but to say that there aren't a decent number who simply didn't want to be part of a superstate project simply isn't fair.