Optimize Images up to 80% with AVIF and WEBPSee how it works

How to identify prominent colors on an image?

Return a list of up to 16 of the most prominent colors in an image, making it easy to group similarly colored images together and perform actions according to the color palette.

Alt text

Try it for yourself:


The number 5 in this example specifies the number of colors to return. Try changing it to see how it affects the result.

You’ll receive a JSON file with a main_colors section:

  "main_colors": [
  [6, 42, 88],
  [101, 80, 96],
  [244, 110, 128],
  [234, 206, 206],
  [91, 162, 206]
Read more about color detection→