Am I racist or is this just my preference?

I am not attracted to men who are of my own race. (I am African American and prefer white men.) My friend likes me, who is my race and I’m not attracted to him. Because of this, he said I am racist. My question is, is my not liking someone of my own race meaning I am racist or is this just preference?
Am I racist or is this just my preference?
Post Opinion