Something about the way they digest food, the color comes from proteins found in their diets. Well fed healthy flamingos will be brighter, and the paler ones are malnourished.
Flamingos filter-feed on brine shrimp. Their oddly-shaped beaks are used upside-down and specially adapted to separate mud and silt from the food they eat.