Colormind can extract color palettes from images. Instead of finding the most representative colors, it aims to find good colors that work together in a color palette.
The algorithm works in a semi-random way, so click generate again to see different results. There's a writeup on how this works on the blog