It's easier to live peacefully with people who are different than you when you are all relatively prosperous. Look at the rioting in France a couple years ago, or the rise of far-right politicians in many European countries that have become more ethnically diverse in recent decades. Additionally, race and ethnicity are still strong factors in the US. People don't kill one another as often in wealthy countries because the rule of law is stronger and there is more to lose, but the divisions exist.
Regarding India, my understanding is that Indian states have a great deal of autonomy, but I'm certainly no expert.