How to make a color palette from an image ordered by frequence

I’ve done something similar in the past by using k-means to cluster the colors. Some posts that you might find interesting:

2 Likes