Racism isnt a feeling in classical terms. Its pure plain hatred, that's taught, shown and passed on.
I don´t think racism is simply "pure plain hatred". That is racism in its most visible form. Racism for me implies feelings of superiority to others (conscious or otherwise) based on the colour of another persons skin or sometimes ethnicity. That doesn´t necessarily imply "hatred". And for that reason I think it is a lot harder to stamp out then what you are suggesting.
One example from here in Barcelona. I had just moved here a couple of months previously from the UK and was at one of the neighbourhood street festivals. At this street festival, in a very Catalan neighbourhood, there was a "CUP" (basically a far-left Catalan nationalist party) stall selling beers and various political bits and bobs.
Now in Barcelona, whenever you are on the street at a party or on the beach and wanting a beer, there is nearly always a Pakistani guy pulling along an old-lady-style shopping basket/trolley or coolbox with beers to sell. Fantastic service and always there when you need them. They are also very chill guys and never causing any trouble.
One of the Catalan girls from the neighbourhood saw me going to buy a beer off one of these Pakistani guys at this neighbourhood festival. She quickly grabbed my arm and explained to me how "these Pakistani guys spit on your beers" (complete with her miming a spitting motion). Before I had a chance to object she dragged me along to the CUP stall where her friends worked - to buy my beer there. They then sold me a beer at a marked up price, meanwhile being a bunch of rude and unfriendly bastards looking at me like I´m just some fucking "guiri" (Spanish word for Northern European with generally negative connotations).
Now I mention this because these CUP members will, without a hint of irony, go out on "refugees welcome" marches and other such political activities that fit in with their "left wing" package. Doesn´t stop them holding blatently racist stereotypes and views away from their overtly political activites. I don´t think this girl or her mates "hated" Pakistani´s, but they certainly held them in lower regard (although they may very well have hated "guiris"!).
Edit : I think I might be arguing!! And just took a good few minutes out of my (obviously!) busy work schedule to do it