You mean, those state and local laws pushed through in parts of the south? Notice I said parts of the south, not the whole country.
No, not just those States that factually pursued these laws - but the attitude and actions in the rest of the USA towards non-European Americans. E.g. County laws in Colorado or e.g. California, in order to prevent non-Europeans from purchasing property and houses right down to obtaining business licenses, etc.
The US Armed Forces do not represent a single State, but the USA as a country - and segregation was in place in e.g. Ft. Sill till 1976.
There are two kinds of racism IMO;
One is simply based onto personal prejudice (partially based onto personal experience) - and the other one comes in, the moment someone feels his personal wealth is being threatened by another country aka race.
China is a classic - though Communism was completely abandoned from the 80'ies onward - and replaced with an autocratic capitalistic system, beholding some minor social aspects - the moment the word China comes in - pure racism sets in, disguised via stating e.g. CCP commies, etc. Or in regards to e.g. the Middle-East; all Muslims are fanatics and baby roasters.
I have been around most of the world - and every single country has it's so called racists (consisting of the aforementioned two groups).
And the USA is definitely one of the worst in regards to the Western World. Which BTW is a major reason as to why the entire world starts laughing when the respective US White House administration propagates, "human rights" - in order to gain a political leverage against an opponent.
That racism and it's repercussions onto society in the USA have been strongly reduced in the USA since the 70'ies - no doubt IMO.
However to state; "the USA has
never been a racist country", isn't just a bad joke, but a right-out lie.