Extract dominant colors of an image using Python : K-mean Clustering is one of the most common data analysis techniques. Any image consists of pixels. A pixel contains three values and each value ranges between 0 to 255, representing the amount of red, green and blue components. The combination of these forms an actual color of the pixel. To find the dominant colors, the concept of the k-means clustering is used. Various colors will belong to different RGBvalues, k-means clustering can be used tocluster them into groups which can be identified into 5 dominant colors.