Picking colors is an interesting problem at the boundary of what can be done algorithmically with satisfactory results.<p>For my latest side project, I needed sets of up to 5 colors that go well together but are sufficiently distant not too be confused. Since this is the task that palette generators typically set out to achieve, I tried a couple of them [1,2], as well as some "hand crafted" palettes found on design blogs [2,3]. In each case, I found that the palettes, while satisfying the desired properties, were aesthetically not particularly pleasing, in a sense lacking a unifying quality.<p>Thinking that "picking colors that go well together" must be a solved problem, I resorted to looking up photographs of 20th century paintings (e.g. [5]) and using the color picker in Gimp to extract what I visually perceived as the most important colors. This gave me far better palettes that any of the generators.<p>There are ways to do this algorithmically, as a form of constrained color quantization, and I later found online implementations as well [6] that give results very close to my hand picking.<p>[1] <a href="http://colorschemedesigner.com/" rel="nofollow">http://colorschemedesigner.com/</a><p>[2] <a href="https://www.colorschemer.com/online.html" rel="nofollow">https://www.colorschemer.com/online.html</a><p>[3] <a href="http://flatuicolors.com/" rel="nofollow">http://flatuicolors.com/</a><p>[4] <a href="http://niklausgerber.com/blog/flat-ui-color-autumn-edition/" rel="nofollow">http://niklausgerber.com/blog/flat-ui-color-autumn-edition/</a><p>[5] <a href="http://i1.ytimg.com/vi/XcwZF1aF4LM/maxresdefault.jpg" rel="nofollow">http://i1.ytimg.com/vi/XcwZF1aF4LM/maxresdefault.jpg</a><p>[6] <a href="http://labs.tineye.com/color/" rel="nofollow">http://labs.tineye.com/color/</a>