title: How to get the predominant color of a website?
body: <p>I'm thinking if it could be possible to get a site's "characteristic" color. For instance, TechCrunch would be green, ReadWriteWeb would be red, CNN also red, Microsoft blueish, PHP purple, etc...</p>
  
  <p>It doesn't have to be accurate, just a best guess.</p>
  
  <p>Some things I have on my mind:</p>
  
  <ul>
  <li>parse all css rules and find the one matching the most elements</li>
  <li>parse all css rules and find background colors of the elements having the biggest dimensions</li>
  <li>getting the body element's background image and getting the predominant color of that (is this possible for an image)</li>
  <li>somehow finding the site's "header" (first element in DOM with background css attribute set?) and getting its background</li>
  </ul>
  
  <p>Also I would need a way to eliminate blacks, greys and white.</p>
  
  <p>Is this feasible? Do you have any other ideas?</p>
  
  <p>P.S. Sorry for my English</p>