Whether he's the most racist POTUS would be debatable to be honest. Whether he's even the most openly racist would be debatable.
Ronald Reagan once referred to African delegates to the United Nations as "monkeys" in a conversation with Richard Nixon.
Richard Nixon believed in an IQ hierarchy of races, in which whites were at the top and Africans at the bottom. This was reported by a presidential historian who reviewed the Watergate tapes.
Woodrow Wilson actually fired most black employees of the federal government, and those that remained under his administration were forced to use segregated lunchrooms, bathrooms and work spaces. He called the Ku Klux Klan "great" and at the Versailles Conference after World War I he flat out refused to even consider Japan's proposal for a treaty that would recognize racial equality.
After the 1936 Olympics, many American gold medallists were invited to a reception at the White House hosted by Franklin Roosevelt. You know who wasn't invited? Jesse Owens. I wonder why? Did you know that farmers and domestic servants were excluded from most of the benefits of FDR's New Deal - it just so happened that most Southern blacks were either farmers or domestic servants. In the northern states, interestingly enough, predominantly black neighbourhoods were declared unsuitable for new mortgages under the New Deal.
Thomas Jefferson is often applauded for his role in pressuring Congress to adopt the Slave Trade Act in 1807, prohibiting the importation of slaves - but he was well aware that this would increase the demand for and value of slaves already in the United States, to the benefit of the slave owners, of which he was one. As he wrote in an 1820 letter, "I consider a woman who brings a child every two years as more profitable than the best man on the farm." There's also the little issue of him repeatedly raping his slave Sally Hemmings and having an entire family of black Jeffersons with her.
Andrew Jackson's policies toward native Americans were literally genocidal.
Andrew Johnson restored the rights of former Confederates, and took back land that had been granted to former slaves and handed it back to those Confederates. Johnson vetoed virtually every piece of legislation Congress passed to promote black rights, and he opposed amendments to the Constitution granting blacks citizenship and the franchise.
I'm no fan of Donald Trump - as anyone who's read my posts knows - but he has company on the list of racist presidents.