Skip to main content

Get color palette from images

Project description


Find the dominant colors in any image


git clone
cd getpalette
python3 -m venv env
source venv/bin/activate
pip install -e .


pip install getpalette


getpalette [-h] [-c COUNT] [-s] image

positional arguments:

optional arguments:
  -c COUNT, --count COUNT
                        Number of colors to find
  -s, --show            Show/Hide hexadecimal color values
  -h, --help            show this help message and exit


The tool will output two files into the main folder your image was initially in. The first file will be named IMAGE_palette and will contain just the color palette. The second file will be called IMAGE_with_palette and this will contain the original image with the palette below it.


Output Palette

alt text

Image with Palette

alt text


  • Report issues
  • Open pull request with improvements
  • Spread the word

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for getpalette, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size getpalette-1.0.7-py3-none-any.whl (97.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size getpalette-1.0.7.tar.gz (97.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page