Build your AI Agent and let it work for your business 24/7 →

Image Color Palette Extractor

Pull the main colours out of any logo, photo or screenshot. Get HEX, RGB and HSL codes with contrast checks, copy them as CSS or Tailwind, or pick any pixel yourself.

  • 100% free
  • No sign-up
  • Runs in your browser

Drop an image here, paste with Ctrl+V / Cmd+V, or

JPG, PNG, WebP, GIF, SVG or AVIF

Your images stay on your device. Nothing is uploaded.

Add an image to extract its colour palette.

Using an image to build a colour palette

A palette taken from your own logo or product photos keeps your posts, highlights covers and website looking like one brand. Start with the two or three largest swatches as your main colours, then use the smaller ones as accents for buttons, links and highlights.

Reading the results

  • The share percentage tells you how much of the image a colour covers. Backgrounds usually come first.
  • The contrast ratios tell you whether white or black text is readable on the colour. Aim for 4.5:1 for body text and at least 3:1 for large headings and buttons.
  • HSL makes it easy to create lighter and darker shades: keep the hue, change the lightness.

Tips for better palettes

  • Crop to the area you care about first. A photo with a lot of sky will give you mostly blues.
  • For logos, use a PNG with a transparent background, so the background isn't counted.
  • Use the colour picker for exact brand colours. Swatches are averages of similar pixels.

How it works

How to use it

  1. Step 1

    Add an image

    Upload, drop or paste a logo, photo or screenshot. It is analysed in your browser and never uploaded.

  2. Step 2

    Choose how many colours

    Pick 3 to 12 colours and the method. Each swatch shows HEX, RGB and HSL, how much of the image it covers, and its contrast against white and black.

  3. Step 3

    Copy or download

    Copy single values, or the whole palette as CSS variables, a Tailwind config or JSON, and download it as a PNG strip. Click the image to pick any exact pixel.

FAQs

Frequently asked questions

Answers to common questions about the Image Color Palette Extractor.

It shrinks the image to about 200 pixels on the longest side, ignores transparent pixels, then groups similar colours. K-means moves each colour group to the average of the pixels closest to it until the groups settle. Median cut keeps splitting the colour range where it varies most. Both give the average colour of each group and the share of pixels it covers.

K-means usually gives colours that look closest to the image and is the default. Median cut is fully predictable and good at separating a few flat colours, which suits logos and illustrations. Try both; they take a fraction of a second.

They are WCAG contrast ratios between the colour and white or black text. 4.5:1 or higher passes AA for normal body text, and 3:1 passes AA for large text (about 24 px, or 19 px bold). Use them to decide whether white or black text is readable on that colour.

Each swatch is the average of a group of similar pixels, and anti-aliased edges blend colours together. For an exact value, click the image with the colour picker on a flat area of the colour you want.

No. The image is drawn on a canvas in your browser and all the maths runs on your device. Nothing is sent to Hypello or anywhere else.

No. Pixels that are more than about half transparent are skipped, so a logo on a transparent background gives the logo's colours, not black or white from the empty area.

More free tools

Try another tool

On-brand posts deserve on-time replies

Hypello replies to Instagram comments and DMs automatically, with AI agents that answer questions and collect leads around the clock. Start free with 1,000 DMs a month.