1. Home
    2. Filters, Effects & Colors
    3. Color Palette from Image

    Color Palette Generator from Image

    Extract the dominant colors of any photo in one click. Choose 2 to 16 colors, sort them, copy HEX, CSS or JSON, and download a palette image.

    Your files never leave your device. Everything happens in your browser.

    Quick answer

    Extract a color palette from a photo in seconds

    To get a color palette from an image, drop the picture into Toolzzz Color Palette from Image. The tool finds the dominant colors and shows each with its HEX code, a color name and its share of the image. Choose 2 to 16 colors, sort by Most used, Hue or Light to dark, click a swatch to copy it, or export everything as HEX, CSS variables, JSON or a palette PNG.

    • 2 to 16 colors
    • Share % per color
    • Copy HEX, CSS, JSON
    • Palette PNG download
    • Sort by use, hue or light
    • 100% free, no sign-up
    • No upload
    Color palette from image: six dominant colors with HEX codes extracted from a landscape photo
    The six most used colors of the photo, with HEX codes.
    How it works

    How to get a color palette from an image

    A color palette generator analyzes every pixel of an image, groups similar colors together and returns the main colors that define its look. It is a fast way to build brand, website and interior color schemes from a photo you love.

    1. Add an image

      Click the upload box, drop a photo or paste a screenshot. Photos, artwork, logos and mood boards all work.

    2. Choose the colors

      Set Number of colors (6 is a good start) and sort by use, hue or lightness.

    3. Copy or download

      Click a swatch to copy its HEX, use Copy HEX, Copy CSS or Copy JSON, or press Download palette PNG.

    How to get a color palette from an image in 3 steps
    How to get a color palette from an image in three steps.
    Use cases

    Popular reasons to extract a palette from an image

    Brand identity

    Build a brand color scheme from a photo, product or mood board that captures the right feeling.

    Website and app themes

    Export CSS variables and use them directly as a site theme or design tokens.

    Art and illustration

    Pull palettes from master paintings, film stills or nature photos for your own artwork.

    Interior and wedding colors

    Find matching paint, decor and flower colors from an inspiration photo.

    Consistent social feeds

    Keep posts on-brand by reusing the same palette in every graphic.

    Product and fashion

    Describe product colors accurately and create matching banners and labels.

    Guide

    How the palette is calculated

    The image is reduced to about 160 pixels on its longest side to remove noise. Toolzzz then uses median cut to split the colors into groups and refines them with several rounds of k-means clustering, weighting green more than blue to match human vision. Transparent pixels are ignored, so logos on transparent backgrounds give clean palettes.

    Sort optionOrderBest for
    Most usedLargest share of the image firstFinding the dominant color
    HueRed, orange, yellow, green, blue, violet; grays lastRainbow-style palettes
    Light to darkLightest color firstGradients and UI tints
    Export

    Use your palette anywhere

    Copy HEX gives a comma-separated list for Canva, Figma or Coolors. Copy CSS creates ready-to-paste custom properties such as --color-1: #7C3AED;. Copy JSON includes HEX, RGB and the share of each color for developers. Download palette PNG saves a 1200 x 420 swatch image with labels for mood boards and client presentations.

    Need one specific color rather than the overall palette? Use the Image Color Picker to click an exact pixel.

    Any device

    How to get a color palette from an image on Windows, Mac, iPhone and Android

    No app to install. The tool works in any modern browser, so the steps are almost the same everywhere.

    On Windows

    1. Open toolzzz.com/color-palette-from-image/ in Chrome, Edge or Firefox.
    2. Drag your image from File Explorer onto the upload box.
    3. Set the Number of colors and sort order, then press Download palette PNG.
    4. The new file is saved to your Downloads folder.

    On Mac

    1. Open toolzzz.com/color-palette-from-image/ in Safari or Chrome.
    2. Drag the image from Finder or the Photos app onto the upload box.
    3. Set the Number of colors and sort order, then press Download palette PNG.
    4. Find the result in Downloads (Safari asks first if set to).

    On iPhone and iPad

    1. Open toolzzz.com/color-palette-from-image/ in Safari.
    2. Tap the upload box and choose Photo Library, Take Photo or Choose File.
    3. Set the Number of colors and sort order, then tap Download palette PNG.
    4. Tap Download, then open it from the Files app and choose Save Image to add it to Photos.

    On Android

    1. Open toolzzz.com/color-palette-from-image/ in Chrome.
    2. Tap the upload box and pick the image from your Gallery, Files or camera.
    3. Set the Number of colors and sort order, then tap Download palette PNG.
    4. The image appears in your Downloads folder and in Google Photos under Downloads.
    Comparison

    Toolzzz vs. typical online photo editors

    FeatureToolzzz Color Palette from ImageTypical online editors
    Your image is uploaded to a serverNever. It is analyzed in your browserUsually
    Number of colors2 to 16Often fixed at 5
    Share % per colorYesRare
    Export formatsHEX, CSS, JSON and PNGOften HEX only
    Sort by use, hue or lightnessYesRare
    Ignores transparent pixelsYesSometimes
    Ads or sign-upNoneCommon

    "Typical" describes common limits of free online services. Plans and limits differ between sites.

    Why Toolzzz

    A palette generator built for real projects

    Accurate dominant colors

    Median cut plus k-means refinement finds colors that truly represent the image.

    2 to 16 colors

    From a minimal two-color scheme to a detailed 16-color palette.

    Share and names

    Each swatch shows its percentage of the image and a plain-language color name.

    Developer exports

    Copy HEX lists, CSS custom properties or JSON in one click.

    Palette image

    Download a labeled PNG swatch for mood boards and presentations.

    Private

    The image is analyzed on your device and never uploaded.

    Pro tips

    Tips for the best result

    • Start with 6 colors. Increase the number if a small accent color is missing.
    • Crop the image to the area you care about first with Crop Image.
    • Sort by Light to dark to find background and text colors for a website.
    • For logos on white, the white background may appear as a color. Use a transparent PNG to skip it.
    • Recolor photos with your new palette using the Duotone Effect.
    Glossary

    Key terms explained

    Dominant color
    The color that covers the largest share of an image.
    K-means clustering
    A method that groups similar colors and moves each group center to its average color.
    CSS custom property
    A reusable CSS variable such as --color-1 that stores a value like a HEX code.
    FAQ

    Frequently asked questions

    How do I get a color palette from a picture for free?

    Upload the picture here. The palette appears instantly with HEX codes. Click a swatch to copy it or download a palette PNG.

    How many colors should my palette have?

    Five or six colors work well for most brands and websites. Use more for illustrations or detailed photos.

    How does the tool choose the colors?

    It groups similar pixels with median cut and k-means clustering and reports the average color of each group.

    Can I export the palette to CSS?

    Yes. Copy CSS creates :root custom properties you can paste into any stylesheet.

    Can I get the colors of a logo?

    Yes. Transparent pixels are ignored, so a PNG logo on a transparent background gives a clean palette.

    Can I download the palette as an image?

    Yes. Download palette PNG saves a labeled swatch image with HEX codes and percentages.

    Does it work on mobile?

    Yes, on iPhone, iPad and Android in any modern browser.

    Is my image uploaded?

    No. The palette is calculated in your browser. Your image never leaves your device.