NinjaFunction (Ninja Function) logo

Color Palette from Image

Upload a picture and get its main colours as HEX codes. Pick any spot on the image, then copy the palette. Free and private.


Choose a picture to get its colours

Drag and drop a file here, or click the button. PNG, JPG, WebP, GIF, BMP or SVG, up to 30 MB.

Your picture stays on your device. The colours are found in your browser and nothing is uploaded.

About This Tool

NinjaFunction's Color Palette from Image finds the main colours of any picture. Choose how many colours you want from 3 to 10, see each one with its HEX and RGB code and its share of the picture, click a colour to copy it, and click anywhere on the picture to pick the exact colour of that spot. Copy the palette as a list or as CSS variables. The colours are found in your browser, so your picture is never uploaded to a server.

🔑 How to Use

  1. Choose a picture. Click Select image, drag a file onto the box, or try the sample picture.
  2. See the main colours. They appear on the right, from the most common to the least common.
  3. Change the number of colours with the slider, from 3 to 10.
  4. Click a colour to copy its HEX code, or use Copy all HEX and Copy CSS.
  5. Click the picture to pick the exact colour of any spot.

💡 Pro Tips

  • ✔ Start with 5 or 6 colours. It is usually enough for a design palette.
  • ✔ Use the picker for small details, such as the colour of one flower or a logo.
  • ✔ Check text on the colours with the Color Contrast Checker.
  • ✔ Want matching colours from one of them? Open it in the Color Palette Generator.

What Is a Colour Palette from a Picture Good For?

  • Brand and website design: build a colour scheme from your logo or a photo you love.
  • Presentations and documents: match slide colours to a product photo.
  • Interior and fashion ideas: turn a photo you like into a set of colours you can shop for.
  • Art and crafts: find the colours of a scene before you paint it.

Using the Colours

  • HEX codes such as #1C5C52 work in CSS, design tools and most editors.
  • CSS variables let you change the whole look of a site from one place.
  • Pick one main colour for large areas and use the others in small amounts, as accents.

Why Pull Colours from a Picture

  • Match a brand to its logo or product photo.
  • Pick website colours from a hero image, so the page matches the photo.
  • Plan a room or an outfit from a picture you like.
  • Make art and slides that follow a photograph’s mood.

Getting a Better Palette

  • Use a picture with clear main colours. A busy photo with many tiny colours gives muddy results.
  • Crop to the part that matters, such as the product, before you extract.
  • Larger pictures are not better. A medium-size image is enough.
  • Pick 5 to 6 colours and drop the ones that are too close to each other.

Turning Colours into a Design

Choose one colour as the main background or brand colour, one as a second colour for sections, and one as an accent for buttons. Keep a very light and a very dark colour for backgrounds and text. Copy the HEX codes straight into your CSS, Figma or Canva.

Frequently Asked Questions

How does the tool find the main colours?

It shrinks your picture, then groups similar pixels together again and again, and takes the average colour of each group. The groups that hold the most pixels become the main colours, listed from most to least common.

How many colours can I get?

Between 3 and 10. Use fewer colours for a simple, bold palette and more colours to catch the smaller details in the picture.

Can I pick one exact colour from the picture?

Yes. Click anywhere on the picture and the colour of that spot appears with its HEX code. This works like an eyedropper.

Why is the HEX code not exactly what I see?

Each palette colour is an average of many similar pixels, so it can differ slightly from any single pixel. To get the exact colour of one spot, click it on the picture.

Which pictures give the best palettes?

Photos with clear colours, such as sunsets, flowers, products and landscapes, give lovely palettes. Very dark, very bright or grey pictures give palettes that are close to black, white and grey.

Can I use the colours in my design?

Yes. Click a colour to copy its HEX code, or copy the whole palette as a list or CSS variables. Check that text is easy to read on your colours with the Color Contrast Checker.

Is my picture uploaded to a server?

No. The colours are found in your browser, so your picture never leaves your device and nothing is stored after you close the page.

Always FreeAll tools are 100% free to use.
No Sign UpNo registration or login required.
Blazing FastInstant results, always.