Lovecraft was horrifically racist. Which is a big inspiration for his writings actually. There's a reason he writes horror about "strange beings nobody quite understands". He was massively scared of the unknown himself, like people with a non-white skintone or who speak in "strange tongues" that aren't English.
IIRC he wasn't really a proponent of racism through a white-supremacy lens. He just feared any culture that wasn't his own. The books are quite an interesting read if you know this btw, it explains why he chose the way he describes the eldritch horrors.
Also he named a cat Niggerman. So take that as you will.