Hoglet

Colour palette from image

A picture to take a palette from

Choose, drop or paste a photo, a design or a screenshot. Its main colours are found here and it is never uploaded.

or paste with Ctrl+V

Read on this device, nothing uploaded

Color Palette from Image: Main Colors as HEX, Private

Pull the main colours out of a picture.

Choose, drop or paste a picture and its main colours are found at once, the largest share first, with how much of the picture each covers. Choose how many colours (4 to 12) and their order: by share, from light to dark, or round the colour wheel. Press a colour to copy its code, or copy the whole palette as HEX codes, CSS custom properties, Sass variables or JSON. The picture is read on your device and nothing is uploaded. The colours are averages of groups of similar pixels, so a small spot of a bright colour may not get a swatch of its own; ask for more colours to find it.

How to use Colour palette from image

  1. Choose, drop or paste a photo, a design or a screenshot.
  2. Pick how many colours, from 4 to 12, and the order: By share, Light to dark or By hue.
  3. Press a colour to copy its code, or copy the whole palette as HEX, CSS, Sass or JSON.

Colour palette from image: common questions

Is it safe to extract a colour palette from my image?

Colour palette from image finds the main colours in your browser, on your device. The picture is never uploaded, and it works offline.

How is the colour palette worked out?

Colour palette from image splits the colours into groups at the middle of their widest spread (median cut), then moves each group’s colour to the average of its nearest pixels (k-means). Transparent pixels are left out.

Why is a small bright colour missing from the palette?

Each colour in the palette is an average of a group of similar pixels, so a small spot of bright colour may not get a swatch of its own. Ask for more colours, up to 12, to find it.

Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.