Image Color Extractor

Upload an image to extract its dominant colors. Drag the indicators to pick colors from specific positions.

Drop a file here,
or use Ctrl+V / Cmd+V to paste

Color Mood
Color Palette

    Or try a sample photo:

    Upload or drag & drop an image to start

    Image Color Extractor: Get the Main Colors of a Photo

    The Image Color Extractor finds the main colors of a photo and turns them into a palette of 2 to 16 colors, from the most common to the least. Each color is marked on the photo with a numbered handle: drag a handle to take the color at that spot instead. Copy the HEX or RGB codes, or save the palette as a PNG, CSS, SCSS, JSON or Adobe ASE file. It runs in your browser, so your photo is never uploaded.

    • Free, no watermark
    • No sign-up
    • Photos never leave your device
    • Works on phone and computer

    Before and After

    Real Color Extractor results. Drag the line to see the palette it found.

    Tulips at a market stall and the palette of their colorsPhotoPalette

    How to Extract Colors From an Image

    1. 1 Upload Your Photo

      Upload or drop a photo, paste one with Ctrl+V, or try a sample. JPEG, PNG, WebP, GIF and HEIC all work.

    2. 2 Choose the Colors

      Set how many colors you want, from 2 to 16, and a mood. Each color sits on the photo under a numbered handle; drag one, or click the photo, to take the color at that spot.

    3. 3 Copy or Save the Palette

      Click a HEX or RGB code to copy it, copy all the HEX codes at once, or save the palette as a PNG picture or a CSS, SCSS, JSON or ASE file.

    Palettes from the same photo with the Colorful, Muted and Dark moods

    Six Color Moods

    The mood decides which pixels count. Colorful, the default, leaves out greys, whites and blacks, so a white wall or a dark shadow does not take a place in your palette. Bright, Muted, Deep and Dark look for those tones, and None counts every pixel.

    The same photo as a palette of 3 colors and of 12

    From 2 to 16 Colors

    A few colors give the overall look of a photo; more pick out its smaller details. The colors are listed from the most common to the least, and the same photo always gives the same palette.

    A logo on a transparent background and the palette of its colors

    Logos With Transparent Backgrounds

    Transparent pixels are left out, so a logo saved as a PNG gives the colors of the logo, not of the background behind it.

    Image Color Extractor at a Glance

    Colors2 to 16, from the most common to the least
    MoodsColorful, Bright, Muted, Deep, Dark or None
    CopyEach color as HEX or RGB; Copy Colors copies all the HEX codes
    Saves asPNG, CSS, SCSS, JSON (with HSL and CMYK too) or ASE
    PriceFree, with no watermark and no sign-up
    Photo formatsJPEG, PNG, WebP, GIF, HEIC and other images your browser opens
    Where it runsIn your browser; nothing is uploaded

    Updated November 25, 2026

    Frequently Asked Questions

    How does the extractor choose the colors?

    It shrinks a copy of your photo to 240 pixels on its longest side, sorts the pixels into 4,096 groups of similar color, and joins those into the number of colors you asked for with k-means clustering. The palette lists them from the most common to the least. The mood decides first which pixels count, and transparent pixels are always left out.

    Why are white, grey and black missing from my palette?

    The default mood, Colorful, only counts pixels with a clear color, so white walls, grey skies and dark shadows do not crowd out the colors you came for. Choose None to count every pixel, or Muted or Dark to look for those tones.

    Can I choose a color myself?

    Yes. Drag a numbered handle, or select one and click the photo, and its color becomes the average of the few pixels under it. On a phone, a loupe above your finger shows what you are taking. The arrow keys move a selected handle in small steps, larger ones with Shift.

    Which formats can I save the palette in?

    PNG, a picture of the swatches with their HEX and RGB codes; CSS variables and classes; SCSS variables; JSON, which also gives each color in HSL and CMYK; and ASE, the Adobe Swatch Exchange format. Copy Colors copies all the HEX codes as one line.

    How many colors should I extract?

    Five is a good start for a design palette: a main color, one or two supporting colors and an accent. Use 2 or 3 to find the overall tone of a photo, and 10 or more to pick out small details, such as the flowers on a market stall.

    Are my photos uploaded?

    No. The extractor reads the photo in your browser, so it never leaves your device. HEIC photos from an iPhone are converted in your browser too.

    Does it work on a phone?

    Yes. Once you add a photo it opens as a full-screen editor with the palette under it. Drag a handle with your finger, and a loupe above it shows the color you are taking.

    Find the Colors in Your Photo