Shahee Ilyas
a breakdown of all the flag colors in the world and how much each color is used in each flag.
With his permission here they are:

All Flag Colors Combined

Using a list of countries
The World Factbook database
flags of countries fetched from Wikipedia (as of 26th May 2007)
python script
calculate the proportions of colors on each of them.
piechart
using another python script