A hastily-written function to pluck the dominant colour from a logo. Works surprisingly well!
from PIL import Imageprint '#%02x%02x%02x' % get_dominant_color(Image.open('logo.jpg'))