Karelia Labs

Karelia Palette free tool

Get the color palette of an image

Drop a photo, a logo or a screenshot and get its main colors as codes you can paste into CSS or a design program. Click the picture to read a single pixel. It happens in your browser. The picture is not uploaded.

  • 3 to 12 colors
  • HEX
  • RGB
  • HSL
  • Share of each color
  • Click to pick a pixel
  • CSS variables

From a picture to a list of colors

A photo holds tens of thousands of different colors. A palette is the handful that carry the picture. Karelia Palette groups the colors of the picture by likeness and gives you one color for each group, largest first.

What you get

  • 3 to 12 main colors, each with the share of the picture it covers.
  • The code of each color as HEX, RGB or HSL. Click a color to copy it.
  • All colors at once, as a plain list or as CSS variables.
  • The exact color of any single pixel: click it in the picture.
  • The palette as a PNG, to keep with a mood board or send to someone.

For a logo or a flat graphic, the colors come out exactly as they are in the file.

What to know

  • For photos, each color is the average of a group of similar pixels, so it may not match any single pixel exactly. Use the pixel picker when you need one precise spot.
  • The shares are counted on a reduced copy of the picture, so they are close estimates.
  • Colors are given in sRGB, the color space of the web.
  • A palette taken from a picture is a starting point. It does not check contrast or readability for text.

The same picture always gives the same palette: nothing is random.

How it works

  1. Drop a picture

    A photo, a logo, a screenshot of a site you like. It opens on this page, on your own device.

  2. Choose how many colors

    3 to 12. Pick HEX, RGB or HSL for the codes.

  3. Copy what you need

    One color with a click, all of them as a list or as CSS variables, or one pixel from the picture.

Questions

How do I get a color palette from an image?

Drop the picture on this page. Its six main colors are shown at once, with HEX codes and the share of the picture each one covers. Change the number of colors if you want more or fewer, and click a color to copy its code.

How do I find the HEX code of one color in a picture?

Drop the picture, then click the spot. The page shows the color of that pixel as a HEX code, or as RGB or HSL if you switch the format, with a copy button next to it.

How are the main colors chosen?

The colors of the picture are sorted into groups of similar colors, and each group gives one palette color. When one color fills most of its group, as in a logo, it is given exactly. Otherwise the average of the group is given.

Is my picture uploaded?

No. The colors are counted by this page in your browser, on your own device, and the page works with the internet connection switched off once it has loaded.

What is the difference between HEX, RGB and HSL?

They are three ways of writing the same color. HEX and RGB give the amounts of red, green and blue, as a six-digit code or as three numbers from 0 to 255. HSL gives the hue as an angle, then saturation and lightness as percentages, which is easier to adjust by hand.

Can I use the colors in CSS?

Yes. The button Copy as CSS variables gives you a :root block with one variable per color, ready to paste into a stylesheet.

Why are the colors of my photo not exactly the ones I see?

A photo has thousands of slightly different colors in every area. Each palette color stands for a whole group of them. To get the color of one precise spot, click that spot in the picture.

Can I turn the picture itself into a few colors?

Yes, with Karelia Pixel, which redraws a photo as pixel art in 8, 16 or 32 colors.