Make a color palette from an image

Turn a photo, artwork or screenshot into a ready-to-use palette of its main colors. Eight colors are shown as soon as the image opens.

Your files never leave your device

Drop an image to pick colors from

JPG, PNG, WebP, AVIF, GIF or BMP, or paste a screenshot. It stays on your device.

You can also paste files with Ctrl+V.

In short

To make a color palette from an image, open or paste it here. Main colors shows its eight dominant colors, largest share first, each with a HEX code and a percentage. Change Colors to 5, 6 or 10, then press Copy all as HEX or Copy as CSS variables.

How to get a color palette from an image

  1. Press Choose image, drop a picture or paste a screenshot. Main colors opens with eight colors after a short analysis.
  2. Change Colors to 5 or 6 for a simple palette or to 10 for more nuance. The colors are sorted by their share of the image.
  3. Press Copy all as HEX for a plain list, or Copy as CSS variables for lines you can paste into a stylesheet.
  4. To add an accent the palette misses, click that spot in the image; it is added to Your picks with its own HEX code.

Why a palette shows fewer colors than the photo has

A photo can contain hundreds of thousands of distinct pixel values. The palette groups similar ones together and gives each group one representative color, so a blue sky made of many shades becomes one or two blues.

The percentages show how much of the picture each group covers. Large shares are background and mood colors; small but striking shares are often the accents that make a palette interesting, so a bigger Colors count is worth trying when a small detail matters.

Frequently asked questions

How do I get a color palette from a picture for free?

Open the picture on this page and the palette appears on its own. Copying the codes is free and needs no account.

How many colors should a palette have?

Five or six is common for a website or brand: a couple of neutrals, one or two main colors and an accent. Use eight or ten when you want to match an illustration or photo more closely.

Can I get the palette with hex codes?

Yes. Every color in Main colors shows its HEX code, and Copy all as HEX copies them all as a list.

Why is my palette mostly grey or beige?

The palette reflects how much area each color covers, and backgrounds, walls and skies often dominate. Crop the picture to the colorful part with crop image first, or raise the Colors count to catch smaller accents.

How do I use the palette in CSS?

Press Copy as CSS variables and paste the result into your stylesheet, then refer to each color as a variable. Rename the variables to match their role, such as background or accent.

Can I make a palette from a screenshot of a website?

Yes. Paste the screenshot with Ctrl+V or Cmd+V and the main colors are found the same way, which is a quick way to see the colors a site uses.

Building a usable palette

A palette straight from a photo is a starting point. Check that text and background colors have enough contrast to read, and keep one bold color for buttons or highlights rather than using every shade equally.

  • Largest share: background or base color
  • Second and third: surfaces, cards, secondary areas
  • Small, saturated share: accent for buttons and links
  • Darkest color: text, if it is dark enough to read

Picking good source images

Pictures with a clear subject and a few strong areas of color give the most useful palettes: a landscape at sunset, a product shot, a painting. Very busy or noisy photos produce muddier colors, and low light pushes everything toward brown. For one exact shade, use the image color picker and click the spot directly.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 20, 2026