I'm sorry to be so dismissive, but I've heard Mexican people say the same bullshit, that it's about social class, not about race (as if that made it any better).
First of all, India's full of racist and sexist bullshit. Evidence of this is arranged marriages in the papers and job ads that specify appearance or sex. There's a long way to go before all members of Indian society can truly have political and social equality.
Second of all, I hotly contest that genetics or appearance has no bearing how you're treated in India and only your social class does. If you're dark but wealthy, you're still seen as inferior to someone who is white and wealthy. And besides, when people first see someone, you can't immediately always guess their social class by their appearance, yet people will still use their appearance to decide how to treat someone.
In Mexico we have a very widespread and very invisible racism, institutionalised centuries ago by the Spaniards (to be fair, the Aztecs before them weren't that nice either). Mexicans can't see it like fish can't see the water they swim in. India has the same problem, and Indians try to deny it by saying that it's not about race, but about class, just like Mexicans do.