A script for grabbing the dominant color or a representative color palette from an image. Uses javascript and canvas.
Read more on my blog | Get the code on Github