Color Palette from Image

Get the main colours of any photo or logo as HEX, RGB and HSL codes, or click the picture to pick an exact colour. Copy as CSS or JSON. Free, no upload.

Runs in your browser. Your files are never uploaded. How it works

Color Palette from Image finds the main colours of a photo, logo, screenshot or painting and gives you their HEX, RGB and HSL codes, with how much of the picture each one covers. Click anywhere on the picture to get the exact colour of that spot. The picture is read in your browser and never uploaded.

How to get the colours of an image

  1. Click Choose a picture or drop a JPG, PNG, WebP, HEIC, GIF or AVIF file on the page.
  2. The main colours appear at once, most used first. Pick 3 to 12 under Colours.
  3. Click a colour to copy its HEX code, or use Copy as CSS, Copy as JSON or Download palette (PNG).
  4. To get one exact colour, click that spot on the picture.
Six main colours of a photo of houses by a river, from sky blue to dark brown and sand, with HEX, RGB and HSL codes, above the photo and a colour picked from it
A photo of houses by a river: six main colours with their share, and one colour picked by clicking the picture.

Tested on a photo

A 1280 × 854 photo (418 KB) of colourful houses by a river, in Chrome, Core i5-13500H laptop, 3 November 2026:

Result
Time to show the palette 0.2 s
6 main colours #ACD3FA sky (25%), #2D2614 dark shadows (25%), #4A4337, #697E95, #A38555, #D0BE8E (13% each)
10 colours changed instantly, without reading the file again
Palette image 1200 × 400 PNG, 38 KB

The yellow and red house fronts are bright but cover only a small part of the photo, so they are folded into the brown and sand colours. With 10 or 12 colours, or a click on a house, you get them on their own.

What you can copy

Button You get
Click a colour Its HEX code, such as #ACD3FA
Copy as CSS :root { --color-1: …; } with every colour as a CSS variable
Copy as JSON HEX, RGB and share of the picture for each colour
Download palette A PNG with one band per colour and its code

Transparent pixels (the background of a PNG logo) are left out, so the palette shows only the colours of the logo itself.

Private by design

The picture is read on your own device. See how it works to check it in your browser.

Frequently asked questions

How are the main colours chosen?

The picture is split into groups of similar colours (median cut): the group with the widest spread of colour is cut in two again and again until there are as many groups as you asked for. Each colour shown is the average of one group, and the percentage is how much of the picture it covers.

Can I get the exact colour of one spot?

Yes. Click anywhere on the picture and you get that pixel's HEX, RGB and HSL code. It reads the full-size image, not the smaller preview.

Why is a colour I can see missing from the palette?

Small details, such as a red logo on a large white page, cover too little of the picture to get their own group. Ask for more colours, up to 12, or click the spot to pick it directly.

What formats can I copy?

Click a colour to copy its HEX code. Copy as CSS gives CSS variables (--color-1 and so on), Copy as JSON gives HEX, RGB and share for each colour, and Download palette saves a PNG with every colour and its code.

Is my picture uploaded?

No. The picture is read by your browser on your device and never sent anywhere.

Related tools