A script for grabbing the dominant color or color palette from an image. Uses Javascript and the canvas tag to make it happen.
Lokesh's blog | Get Lokesh's code on Github | Get Aleks's code on Github