John Rawls has a lot to say about this. So does Ursula K. LeGuin in her short story "The Ones Who Walk Away from Omelas." Amartya Sen points out that democratic societies are inherently more egalitarian than, say, Maoist ones: mass famines haven't happened in democracies, while they happen with some frequency where the people do not elect the government and the press is not free. And the relative income gap between someone who has enough food to survive and someone who does not is very, very large...
Brad DeLong