Pick a Color Palette from Any Image

Why pull colors from an image?

A good photo already has colors that work together. Designers use this all the time: they take a product shot, a holiday photo or a painting and turn its colors into a palette for a website, a slide deck, a wedding invitation or a brand board. It is faster than picking colors from a wheel, and the result looks natural because it came from a real scene.

This guide shows three ways to do it in your browser, depending on what you need:

  1. The main colors of the whole image → Color Palette Generator.
  2. One exact color at a spot you choose → Image Color Picker.
  3. A full scheme that matches one color → the harmony tab of the palette tool.

1. Extract the main colors of an image

Color Palette Generator finds the colors that cover most of the picture.

  1. Choose the image. Drop it on the page or pick it from your device. JPG, PNG and WebP all work, and you can import from Google Drive or Dropbox if they are set up.
  2. Pick the number of swatches. The slider runs from 3 to 10 colors. Six is a good start for most photos.
  3. Pick the code format. Choose HEX (#2E6F95), RGB (rgb(46, 111, 149)) or HSL (hsl(202, 53%, 38%)).
  4. Copy what you need. Click a swatch to copy its code, use Copy All Color Codes for the whole list, or Copy CSS Variables for a ready-made block like this:
:root {
  --color-1: #2e6f95;
  --color-2: #f2c14e;
  --color-3: #e8e4dc;
}

Each swatch also shows its share of the image, so you can see at a glance which color is the background and which is an accent.

The image you choose is processed in your browser instead of being uploaded to ToolJiffy.

How the palette is worked out

Knowing the method helps you get better results:

  • The tool shrinks a copy of the image so its longest side is 120 pixels. This keeps it fast even for large photos.
  • It groups pixels with very similar red, green and blue values together and counts how many pixels fall in each group.
  • It ranks the groups by size and shows the biggest ones, each as the average color of its group.
  • Nearly transparent pixels in PNGs are skipped, so an empty background does not show up as a swatch.

This means the palette shows the most common colors, which is what you want for backgrounds and main tones. It also explains the two quirks below.

Two quirks and how to handle them

Small accent colors can be missing. A red logo or a single bright flower may cover only a tiny part of the image, so bigger areas of sky, wall or skin outrank it. To include it, crop the image around the area you care about with Image Cropper, then run the palette again. Or pick that color directly with the color picker in section 2.

Two swatches can look almost the same. A smooth gradient, such as a sunset or a blue sky, can be split across two neighbouring groups. If you see near-duplicates, lower the swatch count, or keep the one you like and discard the other.

2. Pick one exact color from a spot

Sometimes you do not want the average of the whole picture. You want the exact blue of a logo, or the color of one shirt.

Image Color Picker works like an eyedropper:

  1. Open the image in the picker.
  2. Hover over it to preview the color under the pointer.
  3. Click to save that pixel’s color to your list, then copy its HEX code.

Because photos are made of slightly different pixels, click a few points across the area and pick the one that looks right. Edges and shadows give darker or blended values, so aim for the middle of a flat area.

3. Turn one color into a full scheme

Once you have a color you like, you can build a matching scheme around it. On the Color Palette Generator page, switch to the Palette from colors tab, enter the HEX code and choose a harmony:

Harmony What you get Good for
Complementary Your color, its opposite on the color wheel, plus lighter and darker versions Strong contrast, buttons that stand out
Analogous Five neighbouring colors, 30° apart on the wheel Calm, natural designs
Triadic Three colors evenly spaced around the wheel, plus a light and a dark tone Playful, balanced designs
Tetradic Four colors at 90° steps, plus a very light tone Rich designs with several accents
Shades Five lightness steps of the same color, from dark to light Text, borders and backgrounds that match

A simple recipe is to take the main color from your photo’s palette, build its Shades for text and backgrounds, and use the Complementary color for buttons and links.

Tips for better palettes

  • Use the final crop. If only part of the photo will appear in your design, crop first so the palette matches what people see.
  • Check contrast before you use colors for text. Two colors that look great together in a photo can be hard to read as text on a background. Pair a dark shade with a light one.
  • Mind the lighting. A photo with a yellow cast from indoor lighting gives a warmer palette than the real scene. Find Color Tint shows whether an image leans warm, cool or towards a color cast.
  • Name your CSS variables. After pasting the :root block, rename --color-1 to something like --brand-blue so the stylesheet stays readable.

Which tool should I use?

You want Use
The 3–10 main colors of a whole photo Color Palette Generator
The exact color at one point Image Color Picker
A matching scheme from one color Palette from colors tab
To check a color cast first Find Color Tint

All of them run in your browser, need no account and give you codes you can paste straight into CSS or a design app.

Try it on ToolJiffy

Questions

How do I get a color palette from an image?

Open Color Palette Generator, choose or drop the image and pick how many swatches you want, from 3 to 10. The tool lists the most common colors with their share of the image. Click a swatch to copy its code, or copy all codes or a CSS :root block at once.

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

Use Image Color Picker instead of the palette tool. Hover over the image to preview the color under the pointer and click to save that exact pixel's HEX code to your list. The palette generator averages similar pixels, so it is not meant for one exact pixel.

Why is a small bright color in my image missing from the palette?

The palette ranks colors by how many pixels use them. A logo, a red flower or a neon sign that covers a tiny part of the photo can lose out to large areas of sky or wall. Crop the image around that detail first, or pick it directly with Image Color Picker.

How do I make a full color scheme from one color?

Switch to the Palette from colors tab, enter a HEX color taken from your image and choose a harmony: complementary, analogous, triadic, tetradic or shades. Each option builds five related colors from that one starting color.

Can I use the extracted colors in CSS or design apps?

The HEX, RGB and HSL codes work in CSS, Figma, Canva, Photoshop and most design apps. The Copy CSS Variables button gives a :root block with --color-1, --color-2 and so on, ready to paste into a stylesheet.

Sources

  1. ToolJiffy palette engine: extractPalette() in src/utils/colorExtract.ts (checked 2026-12-02)
127 free tools
Browser-based tools
Local file processing
Free — no sign-up