I don't know if racists date people from races they consider inferior, but you can definitely have black friends and be a racist. See: Dylann Roof. Racism is a very peculiar thing, and God willing, I would love to do a PhD thesis on it.
Bobby Fischer was an anti-semite, a racist, yet his mother was Jewish.
Fischer made numerous anti-Jewish statements and professed a general hatred for Jews since at least the early 1960s.[480][481] Jan Hein Donner wrote that at the time of Bled 1961, "He idolized Hitler and read everything about him that he could lay his hands on. He also championed a brand of anti-semitism that could only be thought up by a mind completely cut off from reality".[215] Donner took Fischer to a war museum, which "left a great impression, since [Fischer] is not an evil person, and afterwards he was more restrained in his remarks—to me, at least."[215] Although Fischer described his mother as Jewish in a 1962 interview,[480] he later denied his Jewish ancestry.[12] In 1984, Fischer denied being a Jew in a letter to the Encyclopaedia Judaica, insisting that they remove his name and accusing them of "fraudulently misrepresenting me to be a Jew [...] to promote your religion".[482] From the 1980s on, Fischer's comments about Jews were a major theme in his public and private remarks.[483] He openly denied the Holocaust, and called the United States "a farce controlled by dirty, hook-nosed, circumcised Jew bastards".[484] Between 1999 and 2006, Fischer's primary means of communicating with the public was radio interviews. He participated in at least 34 such broadcasts, mostly with radio stations in the Philippines, but also in Hungary, Iceland, Colombia, and Russia. In 1999, he gave a radio call-in interview to a station in Budapest, Hungary, during which he described himself as the "victim of an international Jewish conspiracy". In another radio interview, Fischer said that it became clear to him in 1977, after reading The Secret World Government by Count Cherep-Spiridovich, that Jewish agencies were targeting him.[485] Fischer's sudden reemergence was apparently triggered when some of his belongings, which had been stored in a Pasadena, California, storage unit, were sold by the landlord who claimed it was in response to nonpayment of rent.[486] Fischer's library contained anti-semitic and racist literature such as Mein Kampf, The Protocols of the Elders of Zion, and The White Man's Bible and Nature's Eternal Religion by Ben Klassen, founder of the World Church of the Creator.[487][488] A notebook written by Fischer contains sentiments such as "8/24/99 Death to the Jews. Just kill the Motherfuckers!" and "12/13/99 It's time to start randomly killing Jews".[489] Despite his views, Fischer remained on good terms with Jewish chess players.[490]