CraftTools

Color Palette from Image

Guide: How to Pick a Color Palette From a Photo

Drag a picture here, or

Your images stay on your device. Nothing is uploaded.

The picture is shrunk before it is looked at, so this is quick. Colors are grouped by how close they are, and the percentage shows how much of the picture each group covers. Your picture never leaves your browser.

Nothing you enter or choose here leaves your device. This tool runs in your browser.

How the palette is found

Drop in a picture and choose how many colors you want, from 2 to 12. The tool groups pixels whose colors are close together and averages each group into one swatch. Next to each swatch is a percentage showing how much of the picture that group covers, so the biggest colors come first.

What to do with the result

Click a swatch to copy its code. You can also copy the whole palette in one of three forms:

List:           #3a7bd5, #f4a261, #264653
CSS variables:  --color-1: #3a7bd5; --color-2: #f4a261; --color-3: #264653;
JSON:           ["#3a7bd5", "#f4a261", "#264653"]

How many colors to ask for

ColorsGood for
2 to 3A quick brand feel, a simple theme
5 to 6A full website palette with accents
8 to 12A detailed view of a photograph's range, for art or illustration

Turning swatches into a design

  • Follow the 60-30-10 idea. About 60 percent of a layout in a dominant color, 30 percent in a second, and 10 percent in an accent.
  • Pick a neutral for text and backgrounds. Photos give you colors, but pages also need near-white and near-black.
  • Check contrast. A pretty palette can fail for readable text. Test pairs in the color converter and aim for 4.5 to 1 on body text.
  • Use the accent sparingly, for buttons and links, so it stands out.

Getting better results

  • A color is missing. Small areas get absorbed by a nearby group. Ask for more colors, or crop the picture to the part you care about.
  • Too much sky or background. Crop it out first with the image cropper.
  • Busy photos give muddy averages. Try a picture with clear, flat areas of color, or a smaller number of colors.
  • Check on a screen you trust. Color shifts a little between displays.

Hex and RGB

Both write the same color. Hex is a short code such as #3a7bd5. RGB gives the red, green and blue amounts from 0 to 255, so the same blue is rgb(58, 123, 213). Hex is common in CSS and design tools, and the color converter changes between them.

Your picture stays in your browser. Good sources are your own logo, a product photo or a scenic shot that matches the mood you want. Build gradients from the colors with the CSS generator.

Ideas for pictures to try

  • A photo from a place that matches the mood of your project, like a beach, a forest or a city at night.
  • Your product, or the packaging, to match a site to the thing you sell.
  • A painting or poster you like, as a quick way to find colors that work together.
  • A screenshot of a competitor's page, to see the colors they rely on and choose differently.

Written by Akinrinmade Michael · Updated October 24, 2026

How to use

  1. 1Drag in a picture.
  2. 2Choose how many colors you want, from 2 to 12.
  3. 3Click a swatch to copy its code, or copy the whole palette.

Frequently asked questions

Is my picture uploaded?

No. Your photos are processed in your browser and never uploaded.

How are the colors chosen?

Colors that are close to each other are grouped, and each group is averaged into one swatch. The percentage shows how much of the picture it covers.

Can I use the colors on a website?

Yes. Copy them as a list, as CSS variables or as JSON. Check the contrast of text colors with the Color Converter.

Why isn't a color I can see in the picture listed?

Small areas can be absorbed into a nearby group. Ask for more colors, or crop to the area you care about.

What are hex and RGB codes?

Two ways to write the same color. Hex is a short code like #3a7bd5, and RGB gives the red, green and blue amounts from 0 to 255.

Read the guide

Learn how this works and how to get the most from it.

Images

How to Pick a Color Palette From a Photo

How to build a color scheme from an image, how a palette is found, and how to use the colors in a design, a website or a room.

3 min read

Color Converter & Contrast Checker

Convert HEX, RGB and HSL and check WCAG contrast ratios.

CSS Gradient & Box Shadow Generator

Design gradients and box shadows visually and copy the CSS.

Image Converter

Convert between PNG, JPG and WebP in your browser.

Image Cropper

Crop images by dragging, with aspect ratio presets.