Hard to say. In order to be a racist, one has to at least believe in something. I'm not so sure Trump believes in anything outside of his ego. Trump's history is one of complete callousness and offensive disregard for sentiment. And given the way he quickly defaults to denigrating the military and its members, he has no idea or care what actual patriotism is. But he does know what makes the simple mind of his base tick.
His history for planting stories about himself in the media, his push to make a reality show a true representation of himself, and his need to hide what his tax returns, suggests that his sole purpose in life is to provide the masses a mere illusion of himself. He hides behind a mountain of non-disclosure agreements for fear that the world will see him for what he is...and empty shell seeking affection. He can't even create a marriage without buying one.
Trump bumbled into the White House on a wave of political extremism and his nonsensical rhetoric along the way earned him adoration form people starving for an identity. And today he continues to pander to that pathetic base because even his re-election campaign has no idea how to sell him. Thus, he defaults to xenophobia and portrays conservatives as victims of "the left" who need a hero. In the meantime, he is the biggest flip-flopper in recent memory, which provides even more evidence of how little he believes in even his own crap. I hear he's OK with masks now. And didn't he hold up the Bible as a political trinket a couple weeks ago? His only real fear has to be that one day his base might pull their heads out of their asses and tire of being led onto extremist limbs, only to be abandoned there.
Trump's entire life is one big caricature, from trophy wives to exaggerated business success. He is constantly looking to be accepted, from trying to push into elitist circles that don't like him to buying his way into Veterans Day parades in New York. Now, he plays the obtuse fool for the obtuse masses from the White House.
So, racist? Hard to actually know what the man believes. If declaring the sun green would earn him some applause, the idiot would throw paint at the sky for an encore.