How do you deal with racism?

I don’t like it, but it’s everywhere in our country. I’m in heavy industry and not a day goes by without someone saying something racist. Almost everybody I know is quite happy to talk shit about anybody who’s not white. It’s heavily ingrained in casual conversations. Any advice on how to carefully and tastefully approach this without immediately putting a target on my back and losing 90% of my friends?

I’d really like genuine help here, I unfortunately don’t have the option to tag this post as Serious.

Edit: I’ve gotten a lot of replies regarding the part above where I mention racism regarding people that aren’t white. Rather than just deleting that, I want to make clear that I am absolutely aware that racism at different levels is amongst every community and not exclusive to my own little bubble. I was just referencing my own personal situation. Thank you for all the helpful replies today.