Private by design. Files never leave your device.

Color Palette from Image: Get HEX, RGB and HSL

Drop a photo and get its main colours. Nothing leaves your browser.

How to get colours from an image

  1. Drop your image onto the box, or click it to choose a file.
  2. Choose how many colours you want: 3, 5, 8 or 10.
  3. Click any swatch to copy its HEX code.
  4. Use Copy all for the whole list, or Copy share link to send the palette to someone.

How the palette is built

Designers pull colours from photos to build brand palettes, website themes, presentations and illustrations. This tool shrinks your image, groups similar pixels into clusters using k-means and returns the average colour of each cluster, largest first. Each swatch shows HEX, RGB and HSL values you can paste straight into design tools or CSS.

The share link stores only the colour codes, never your image, so you can send a palette without sharing the photo. For the best results use an image with the colours you actually want. Photos with large flat backgrounds can make one colour dominate, so try more colours or crop to the area you care about.

Tips

Frequently asked questions

Is my image uploaded?

No. Colours are calculated in your browser. A shared link contains only the colour codes, never the image.

How are the colours picked?

The image is shrunk and its pixels are grouped into clusters with k-means. Each swatch is the average of one cluster, largest first.

How do I share a palette?

Press Copy share link. Anyone who opens it sees the same swatches.

Which colour formats are shown?

HEX, RGB and HSL for every swatch.