Select an image to extract a color palette from. This is done using stratified sampling of the pixels, then converting the samples from RGB into the more human friendly HSL space, and finally finding dominant mean colors using k-means clustering. Source code here.