Color palette from image
No image yet. Its palette appears here.
- Drop, choose or paste (Ctrl+V) a photo, screenshot or illustration.
- Set how many colors you want, from 3 to 12.
- Click or tap the image to pick exact pixels with the 8x loupe.
- Copy hex codes, export tokens or download a palette card.
Drop, choose or paste a photo, screenshot or illustration and HueKit pulls out its 3 to 12 dominant colors. Click any spot to pick an exact pixel with an 8x loupe. Everything happens on your device, so nothing is uploaded, and you get copy ready hex values, CSS variables and a palette card.
How do you get a color palette from a photo?
Drop the photo into the box above, choose it from your files or paste it with Ctrl+V, and the dominant colors appear with their hex codes, nearest color names and a ready-made block of CSS variables. There is no upload, no account and no waiting: the whole thing runs on your device. Extracting color from an image is the fastest way to start a design that feels cohesive with a photo, a product shot or a piece of brand art, because the palette comes out of the artwork instead of being guessed alongside it.
- Drop in a photo, screenshot or illustration, click to browse, or paste one.
- Set how many colors you want with the slider, from 3 to 12.
- Click or tap the image to pick exact pixels; the 8x loupe shows the pixels around the crosshair.
- Copy a single hex, the CSS custom properties or a token export, or download the palette as a PNG or SVG card.
- Open the colors in the palette generator to lock the ones you like and fill the rest by harmony, and check text pairs in the contrast checker.
How does the extraction actually work?
Worth knowing, because it explains most of the surprises. The image is first drawn to a canvas scaled so its longest side is at most 240 pixels, which keeps the pixel read fast enough to feel instant. Every fourth pixel of that canvas is then sampled, and any pixel with an alpha value below 125 is skipped, so transparent areas contribute nothing.
Each sampled pixel is dropped into a bucket by keeping the top four bits of its red, green and blue values. That is 16 levels per channel, or 4096 buckets in total, which is coarse enough to group colors the eye reads as the same and fine enough to keep a navy and a royal blue apart. The buckets are ranked by how many pixels landed in them, the top ones win (as many as the slider asks for, six by default), and each swatch is the average color of the pixels inside its bucket. The ranking is kept in memory, so moving the slider only takes more or fewer buckets from the same list. In short: dominant means most common by area, and the swatch is an average rather than a sampled pixel.
Picking works differently. The image is also kept at up to 1200 pixels on its longest side, and a pick reads one pixel of that copy exactly, with no averaging. Very large photos are scaled down to that size first, so a pick on a 24 megapixel image reads a pixel of the scaled copy, which already blends a few original pixels.
Why is the color you wanted missing from the palette?
Almost always because it does not cover enough of the image. Ranking by pixel count is what makes the palette feel true to the photo, but it also means a small, striking accent loses to a large, bland background every time. A landscape returns sky and grass; a portrait returns skin and backdrop; the one red jacket that made you pick the photo may never appear. The fix is simple: raise the count, or click the jacket in the image to pick its color directly. Cropping to the region you care about and extracting again works too.
Two more honest caveats. Because each swatch is an average, a bucket that straddles the boundary between two areas can average out to a color that is not really in the image, and downscaling to 240 pixels blends neighboring pixels for the same reason. And a heavily compressed JPEG carries colors that the compression invented, not the camera. Treat every swatch as a well-informed starting point that you then adjust, and use the picker when you need one exact pixel.
How do you turn a palette into a color system?
A raw palette is a starting point, not a finished system. Once you have your colors, a few steps make them usable:
- Pick one color as the primary and the rest as supporting and accent roles. The palette generator opens your colors with one click, so you can lock the keepers and regenerate the rest.
- Generate light and dark steps for each in the color converter to build full scales.
- Check text colors against your backgrounds in the contrast checker before you commit. Extracted palettes are often low contrast against each other, since they came from one image, so this step catches real accessibility problems.
- Need the same colors for print? Run each hex through the RGB to CMYK converter, and read why that conversion is an approximation rather than an answer.
Is my image uploaded anywhere?
No. Many palette tools send your image to a server to process it. HueKit does not. The canvas API lets the browser read pixel data locally, so your screenshots and unreleased artwork stay on your machine, whether you drop, choose or paste them. That also means the tool keeps working with no connection once the page has loaded, and there is nothing to delete afterwards.
Frequently asked questions
How do I get a color palette from a photo?
Drop the photo into the box above, choose it from your files, or paste it with Ctrl+V (Cmd+V on a Mac). HueKit reads it with the canvas API and lists its dominant colors, most common first, each with a hex code, its nearest color name and a copy button. Any format your browser can display works, including JPEG, PNG, WebP, GIF and SVG. Nothing is uploaded.
Can I paste an image or a screenshot?
Yes. Copy an image or take a screenshot, then press Ctrl+V (Cmd+V on a Mac) anywhere on the page outside a text field. Browsers that support reading the clipboard also show a Paste image button; the first time you use it, the browser may ask for permission. The pasted image is read on your device like any other file.
How do I pick one exact color from the image?
Click or tap the spot on the image. A crosshair marks it and an 8x loupe shows the pixels around it, so you can see exactly which pixel you are on. On a touch screen, press and drag to fine-tune, then release to pick. With a keyboard, focus the image, move the crosshair with the arrow keys (Shift moves 10 pixels) and press Enter. Picks collect in a list of up to 10 that you can copy or open in the palette generator.
How many colors can it extract?
From 3 to 12, set with the slider; the default is 6. Moving the slider re-ranks the colors already read from the image, so the palette updates instantly without decoding the image again. A flat graphic with fewer distinct colors than you asked for returns only the colors it really has.
Is my image uploaded anywhere?
No. The image is read and analyzed entirely in your browser using the canvas API. It never leaves your device, so it works offline once the page has loaded and keeps private images private.
Why is the color I wanted missing from the palette?
Because the palette ranks colors by how much of the image they cover, not by how interesting they are. A striking accent that fills two percent of a photo loses to a bland sky that fills forty. Raise the count, click the accent in the image to pick it exactly, or crop the image to the part you care about and run it again.
Related tools
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.