SaafKit

Pull a colour palette out of an image

Get the colours that actually dominate a photograph, ordered by how much of the image they cover, and copy any of them in the format you need.

  • Runs in your browser
  • Nothing uploaded
  • No account
  • No watermark
  • Free

How to palette from an image

  1. Drop in the image you want colours from.
  2. Choose how many colours to pull out.
  3. Pick the format you want: hex, RGB, HSL or ready made CSS variables.
  4. Click any swatch to copy it.

How the colours are chosen

The image is reduced to a small grid, every pixel is sorted into a bucket of similar colours, and the buckets with the most pixels in them win. Each result is the average of its bucket, so what you get is the colour that genuinely covers the most area rather than the brightest or most eye catching one.

That is worth knowing because it explains the surprises. A photograph that feels vividly orange often returns mostly muted browns and greys, because that is what most of the frame actually contains. The orange is a small, intense area that your eye fixes on.

Turning a photo palette into a usable one

Extracted colours are a starting point, not a design system. Three adjustments make them work:

  • Pick one as the accent and let it be the only saturated colour. A palette where everything is equally loud has no hierarchy.
  • Check the contrast before you put text on any of them. Paste the hex into the colour converter and it gives you the contrast ratio against white and black with a pass or fail.
  • Darken or lighten the extremes. Photographs rarely contain a colour dark enough for body text or light enough for a page background, so take the nearest and push it further.

Matching a brand colour from a photo

If you are trying to match something physical, such as a product's actual colour, be careful. The colour recorded in a photograph depends on the light it was shot in, the white balance of the camera and the screen you are viewing it on. For anything that has to match in print, work from the brand's stated value or a physical reference rather than a photograph of it.

Questions

How many colours should I pull out?

Five or six is usually the useful range. Beyond eight the extra colours tend to be near duplicates of ones you already have.

Why are the colours duller than the image looks?

Each result is the average of a group of similar pixels, and averaging pulls towards the middle. The vivid colour you remember is often a small part of the frame.

Can I copy them as CSS variables?

Yes. Choose CSS variables as the format and each swatch copies as a ready made custom property declaration.

Is the image uploaded to read the colours?

No. The pixels are read by your browser and the image never leaves your device.

The rest of the toolkit

Every one of these runs on your own device. Nothing is uploaded, and there is no counter anywhere.

Image tools

Remove a backgroundCut the background out of any photo and get a transparent PNG.Compress an imageDrop a photo in, slide the quality until the saving looks right, and download.Resize an imageSet a width and the height follows, or lock both to a size something else demands and choose whether the image fills the box or fits inside it.Convert a formatPick the format the next tool in your workflow expects.Crop an imageDrag across the image to choose the area you want.Circle cropMake a round profile picture with a genuinely transparent corner, so it sits properly on any background rather than showing a white square.Rotate or flipTurn a photo that came out sideways, straighten a horizon that is slightly off, or mirror an image so a subject faces the other way.Add a watermarkPut your name, studio or web address onto an image before you send a proof out.Images to PDFDrop in photos or scans and get one PDF with a page for each.Favicon generatorOne image in, a zip out with every size a browser asks for, the legacy ICO file, the Apple touch icon, a web manifest and the HTML to paste into your head.Palette from an imageGet the colours that actually dominate a photograph, ordered by how much of the image they cover, and copy any of them in the format you need.Image to Base64Turn a small image into text you can paste straight into CSS, HTML, an email template or a JSON payload, with no separate file to host.Passport photoChoose the country, frame your face in the box, and get a correctly sized photo at print resolution.Split an imageCut one picture into equal tiles.Add a borderPut a frame around an image.

Text and generators