Upload any image and instantly extract its dominant colors. Get hex codes, RGB values and copy them in one click.
Drag and drop any image or click to browse. Supports all common formats.
The tool automatically extracts dominant colors with hex codes, RGB values and percentages.
Click any color to copy its hex code. Download the palette as PNG or copy as CSS variables.
Designers do this all the time, often without thinking about it. You see a photo that has a feeling you want — a calm beach at sunset, a moody noir cityscape, a vibrant market in Marrakech — and you want to know what colors actually create that feeling. Eyeballing it gets you close but never quite right. A palette extractor pulls the dominant colors out of an image and shows you the exact hex codes, so you can match the mood deliberately in your own work.
This tool analyzes any image you give it and shows you its dominant color palette: typically five to ten colors that together capture the visual essence of the image. You get hex codes you can paste straight into CSS, design tools, or wherever. The whole thing runs in your browser; the image is never uploaded anywhere.
It's the kind of tool that's useful in small bursts, several times a project, rather than a daily workhorse — but when you need it, nothing else really does the same job.
Drop in a photo, illustration, painting, screenshot, or any other image. Higher-resolution inputs give better palettes because there's more color information to analyze, but anything reasonable works.
The tool analyzes every pixel and identifies the most representative colors, weighted by frequency and visual prominence. You see the palette appear within a second or two with the matching hex codes underneath each color.
Click any color to copy its hex code to your clipboard. Or download the whole palette as a swatch image, a CSS file with the colors as variables, or a JSON config for your design system.
Brand color development. A founder gathers a mood board of images that "feel right" for their brand — photos, paintings, scenes. Run each through the palette extractor and you start to see the colors that recur across the mood. Those are the candidates for your brand palette.
Photo-driven web design. When a website's hero image is the dominant visual element, the rest of the page should harmonize with it. Extract the palette from the hero photo, use those colors as your secondary accents, buttons, and section backgrounds. The result feels intentional rather than randomly assembled.
Matching marketing materials to product photos. Your product photo has its own color story (the colors of the product, the background, the prop styling). Extract that palette and use it consistently across packaging, ads, and social posts so everything feels like part of the same world.
Painting and illustration reference. Artists use palette extraction to study how their favorite painters used color. Pull the palette from a Vermeer or a Hopper and see exactly which six or seven colors carry the entire painting.
UI design from photography. When designing an app that features photography (a travel app, a food app, a real estate app), the UI's accent colors should complement typical photos rather than fight them. Extract palettes from representative photos and use those colors in your UI system.
Interior and exterior design. Architects and interior designers extract palettes from a client's inspirational photos to guide paint, fabric, and finish selections. The hex codes translate directly to paint chip references.
Fashion and styling. Fashion designers extract palettes from textiles, runway photos, and street fashion shots to inform season collections.
The quality of the extracted palette depends on the image you give it. A few rules of thumb that consistently produce useful palettes:
Choose images where color is the point. A photo of a single dark object on a white background gives you a two-color palette. A vibrant marketplace scene gives you a rich, varied palette. If you want a useful palette, pick images that have meaningful color variation.
Avoid heavily-edited or filter-heavy images. Instagram filters often push images toward similar color casts. A palette extracted from a heavily-filtered photo might tell you more about the filter than about the actual scene.
Pick images with the lighting you want to evoke. Same scene in golden-hour light versus harsh midday sun produces wildly different palettes. Match the lighting to the mood you're going for.
Crop tightly to the parts you care about. If the photo includes a lot of sky or a big featureless background, those colors will dominate. Crop in to the subject before extracting if the background isn't part of what you want to capture.
Don't expect one palette to do everything. A successful brand or design system usually has 5–8 carefully chosen colors. A palette extracted from a single image is a starting point — refine it, balance it, and edit it down to colors that actually work together at small and large sizes, in light and dark contexts.
Under the hood, palette extraction is mostly an exercise in clustering. Every pixel in your image is a point in 3D color space (one dimension each for red, green, and blue). The algorithm groups nearby pixels into clusters and picks the representative color of each cluster. The largest clusters become the most prominent palette colors.
Common algorithms include median cut (used historically by GIF format encoders), k-means clustering (the most common modern choice), and various neural-network-based approaches that try to identify "important" colors based on perceptual prominence rather than just frequency. Our tool uses a fast in-browser implementation that balances quality with speed.
This is also why bigger images produce more reliable palettes — more pixels means more data for the clustering algorithm to work with, and small variations average out instead of dominating.
An extracted palette is raw material, not a finished system. To turn it into something you can actually use:
Identify the role of each color. Which one is the primary brand color? Which is the dominant background? Which is the accent or call-to-action? An image might give you ten colors but a working design system needs you to assign each one a job.
Generate tints and shades. A working palette includes lighter and darker variants of each main color — for backgrounds, hover states, borders, and shadows. Most design tools (Figma, Sketch, Adobe Color) can generate these automatically from your base palette.
Test for accessibility. Some color combinations look great but fail contrast checks. Run your final palette pairs through a contrast checker (we have a related tool coming) before locking them in. WCAG AA requires at least 4.5:1 contrast for normal text.
Test in real contexts. Mock up a few real interfaces (a button, a card, a section header) using your palette. Some palettes that look beautiful as five squares fall apart when applied to a real layout. Iterate until the system feels right in actual use.
The tool samples pixels from your image and uses a median-cut color quantization algorithm to group similar colors together. It then returns the most dominant color groups as your palette.
No. All processing happens entirely in your browser using JavaScript. Your image never leaves your device.
Yes. The colors you extract are just data — hex and RGB values. You can use them in any project, commercial or personal.
JPG, PNG, WebP, GIF, BMP, SVG and most formats your browser can display.
By default, five — that's usually the sweet spot for a usable palette. You can adjust this between three and ten depending on how granular you want the result.
Any image works. Screenshots, digital paintings, scans of real paintings, photos, illustrations — all produce useful palettes. Digital art with very limited color counts (like pixel art) gives you the literal palette used by the artist.
When an image has a dominant color region (a large sky, a uniform background), nearby shades from that region can end up as separate palette colors. To get more variety, crop the image tighter to the subject before extracting.
Currently it works on still images. For videos, take a screenshot of a representative frame and run that through the extractor.
Colors themselves aren't copyrightable — anyone can use any color combination. What is copyrightable is the original image. If you extract a palette from someone else's photograph, you can use the colors freely in your own work, but you can't reproduce or claim ownership of the original photo.