Color Palette from Image
Extract up to eight dominant colors from a whole image or selected region. Copy hex codes and see estimated color coverage. Runs in your browser.
Still loading. If the tool doesn’t appear, reload this page.
Planned features and workflows
- AltF ColorForge
Coming soon
About this tool
Color Palette from Image
Extract a practical color palette from uploaded images.
Upload an image to get its dominant colors as copyable hex codes. The tool samples the whole image by default. Use Sample area to focus on the center, a half, or a quadrant, and see the selection outlined on the preview. Each swatch shows its estimated share of visible samples in the selected area. Image decoding and color extraction run in your browser.
How to use Color Palette from Image
Click the upload panel and pick a PNG, JPG, or WebP image from your device.
Use the default Whole image view or choose a region under Sample area. The palette updates from the visible pixels in the selection.
Click any swatch to copy its hex code, then paste it into your CSS, design file, or brand doc.
Why use Color Palette from Image
Ranked by estimated coverage
Swatches are ordered by the number of samples in each color group. The percentage is based on all sufficiently opaque samples in the selected area.
Click a swatch, get the hex
Select a swatch to copy its hex code. The palette shows a short confirmation when the code reaches the clipboard.
The image never leaves the tab
The file is read with URL.createObjectURL and decoded on a local canvas — no upload request, no account, no stored copy.
Focus on one part of the image
Select a portion of a photo and compare its most common colors with the whole-image palette without uploading a cropped copy.
Common use cases
- Pull the working brand colors out of a logo or screenshot when nobody can find the original style guide.
- Turn a photograph into a starting set of hex codes for a website hero, slide deck, or social template.
- Sample the dominant tones from a reference shot or mood board and paste them straight into Figma or CSS.
Frequently asked questions
How do I get a color palette from an image?
Upload an image to generate a palette automatically. The tool draws the chosen area onto a 96×96 canvas, samples every fourth pixel and groups similar colors by rounding RGB values. Click any swatch to copy its hex code.
Link to answerCan I extract colors from just part of an image?
Yes. After uploading, open Sample area and choose the center, a half, or a quadrant. The preview outlines the selected region and the palette updates to show its dominant colors. Choose Whole image to go back.
Link to answerHow many colors does it extract from a photo?
Up to eight. The tool keeps the eight most frequent sampled color groups. An area with fewer distinct groups produces fewer swatches.
Link to answerWhy doesn't the hex code exactly match the color in my photo?
Because the values are snapped to a grid. Each channel is rounded to the nearest multiple of 32, so every extracted component is 00, 20, 40, 60, 80, A0, C0, E0 or FF in hex. That is deliberate — it merges near-identical shades into one swatch instead of returning eight versions of the same blue — but it means each hex is a close neighbour of the source color rather than a pixel-perfect eyedropper reading. Use a dedicated color picker if you need the exact pixel value.
Link to answerAre my images uploaded to a server?
No. The file is turned into a local blob URL with URL.createObjectURL, decoded by an image element, and read back from a canvas in the same browser tab. No network request carries the image, nothing is stored, and closing the tab discards it.
Link to answerIs this color palette generator free?
Yes — free, with no sign-in and no per-day cap. The page loads without an account and the extraction runs on your own device, so there is nothing to meter or bill.
Link to answerWhat image formats can I upload?
PNG, JPG and WebP are what the upload panel lists, and the file input accepts any image type your browser can decode, which usually also covers GIF, BMP and AVIF. Transparency is handled properly: pixels with an alpha value below 128 are skipped, so a logo on a transparent background returns the logo's colors instead of a swatch of empty space.
Link to answerCan I download the palette as a file, CSS, or ASE swatch?
Select a swatch to copy its hex code individually. You can paste the code into a stylesheet or a design app.
Link to answerWhy are all eight colors so similar to each other?
The palette ranks colors by sampled frequency, so a large sky or solid background can fill several slots with similar tones. Use Sample area to focus on another part of the image and compare the results.
Link to answer