dominantcolor Finds the dominant color of an image using k means. It's an App Engine project but kmeans.py is a generic Python module Check it out here: http://dominantcolor.appspot.com/