Color palette from image
Turn a photo, logo, or screenshot into a color palette. Extract up to 12 distinct colors, get their HEX codes, and download a palette you can use anywhere.
Find the colors that belong together.
Add an image. Choose your palette size. Take it anywhere.
Your image, in color
A palette will appear as soon as you add an image.
Selected color
Ready to copyCMYK is an estimate. Printed colors depend on your printer and color profile.
Screen picking isn’t available in this browser. Upload a screenshot to sample it instead.
Recent picks
Your picked colors will stay here while you explore.
How to extract a color palette from an image
- 1
Add your reference image
Drop a PNG, JPG, WebP, GIF, SVG, or BMP into the tool. You can also paste a screenshot, load a direct image URL, or try a sample. Local files stay in your browser.
- 2
Choose your palette size
Choose 4, 6, 8, 10, or 12 colors. The extractor groups similar pixels and finds distinct colors, ordered by how frequently they appear. Simple images may produce fewer swatches.
- 3
Inspect a swatch
Select a palette color to see its HEX, RGB, HSL, HSB, OKLCH, and estimated CMYK values. Need a particular accent? Click its exact pixel in the image.
- 4
Take your palette with you
Copy CSS custom properties, or use Export palette to download a labeled PNG, JSON file, or CSS file. You can also copy SCSS variables and a Tailwind config snippet.
What is an image palette extractor?
An image palette extractor turns the colors in a picture into a small set of reusable swatches. A photo contains thousands of subtle variations. The tool samples the image, groups similar shades, and chooses representative colors so you can start with a useful palette instead of picking every pixel by hand.
Use it for a moodboard, a product photo, a brand reference, or a social media design. The result reflects the picture you supply. A forest photo tends to produce greens and earth tones; a poster with bold typography can produce a mix of background, text, and accent colors. The extractor doesn't invent complementary colors that aren't represented in the image.
Choose the right number of colors
Start with four colors for a focused design: one background, one text color, one main color, and one accent. Six colors give you more room for secondary elements. Eight to twelve are useful when you're exploring a busy illustration or collecting several options before narrowing the set down.
More swatches aren't always more useful. A two-color logo should give you a small palette, even if you ask for twelve. Krumzi avoids filling the row with near-identical shades just to reach a number. If a small but important accent isn't in the automatic result, use the image picker to capture it manually.
Dominant colors and exact brand colors
The automatic palette represents broad areas of color. Its swatches are averages of nearby colors within a group, so they're useful for capturing the overall look of a photograph. For an exact logo or button color, sample a flat pixel with the image eyedropper instead.
Use the highest-quality source you have. JPEG compression introduces variations around edges, while shadows and highlights can change the apparent color of a photographed object. An original PNG or SVG logo is usually a better reference for brand colors than a photo of printed packaging. Transparent pixels are skipped; translucent colors are read against white.
Use your extracted palette in a real design
Pick one dominant color and let the others support it. A warm orange might work well for a call to action, while a pale neutral becomes the background and a deep shade carries the text. You don't need to use every extracted color in equal amounts.
For a website, copy the CSS palette into your stylesheet and assign the variables to text, backgrounds, borders, and buttons. For a moodboard or client handoff, download the PNG with its HEX labels. For design tokens or another application, the JSON array gives you the same colors in a portable format. Check text contrast in the Color converter tab before using a swatch for small text.
Your questions, answered.
Can I create a color palette from an image for free?
Yes. Upload an image and extract a palette without an account, payment, or watermark. PNG, JPG, WebP, GIF, SVG, and BMP files are supported up to 20MB, 32 megapixels, and 16,384 pixels per side.
How many colors can I extract?
Choose a target of 4, 6, 8, 10, or 12 colors. The tool returns fewer when the image doesn't contain enough distinct visible colors. The default is six.
Why is my brand color missing from the palette?
Automatic extraction prioritizes common colors. A small accent may occupy too few pixels to appear. Click the accent directly in the image to read that exact pixel, and avoid anti-aliased edges.
Can I download the color palette?
Yes. Export a PNG with HEX labels, a JSON array, or a CSS file. You can also copy CSS, SCSS, JSON, and a Tailwind configuration snippet to the clipboard.
Does the palette generator upload my photos?
Local files are processed in your browser and aren't uploaded to Krumzi. If you choose a direct image URL, your browser requests it from that image's host. That host must permit cross-origin image access.
Can I extract a palette from a transparent logo?
Yes. Fully transparent pixels are ignored. Semi-transparent pixels are composited on white, matching the tool's image background. A fully transparent image has no visible palette.
More free tools you'll like
Built by Krumzi. All free, no signup.
Calculate any ratio, resize images without distortion, export social-ready sizes for every platform.
Pull HEX, RGB, HSL, HSB, OKLCH, and CMYK out of any image. Auto-extracts the dominant palette.
Convert HEX, RGB, and HSL. Adjust channels, check text contrast, and copy any format.
Build vibrant gradient backgrounds. Start from a preset, then export PNG, SVG, or CSS.
Looping animated gradient backgrounds for slides, intros, and reels.
Slick number animations for milestones and stats. Export MP4.
Wrap product screenshots in animated gradients. Perfect for launches.
This Free Tool Is Just the Start
Krumzi designs complete social media graphics and videos from a text description. No templates. No design skills. Just describe what you want and watch AI build it.
Every layout decision. Every color choice. Every font and composition. Done in seconds. Fully editable. Fully yours.