is it possible for my husband to love me, but be racist?

I'm curious. Is it possible to be married to a racist? I'm African-American and my husband is white. I'm a college graduate, I'm smart, pretty and a religious woman. I'm confused, because if someone were racist, then why would they marry someone of the race that they didn't like??? I feel like my husband really loves me and I love him. We have so much fun together and we have such a past and a history together, 6 years 😊 but sometimes I feel like he says racist comments towards the race or he will say racist sounding jokes??? I don't know how to respond to most of them. I just sort of don't react too much because I feel like maybe he is ignorant and doesn't understand what he is saying. Sometimes I'll say, "what you just said sounds racist."  And he will feel bad and sadly ask me if I really think he is a racist, but I answer no, because he is with me? We just get over it after a while, but I'm very confused?? Like, what is happening here? .. it's in the back of my mind constantly. Can he actually be madly in love with me and still be a racist?? No immature comments please.