Color · Made a little simpler

Color palette from image

Extract approximate dominant colors from a local JPG, PNG, or still WebP. Inspect original pixels with magnification and export the palette as HEX, CSS, or JSON.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Or focus here and paste an image with Ctrl+V / ⌘V. JPG, PNG or still WebP · up to 25 MB / 24 MP.
#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Color palette from image: how to use it

  1. Choose or paste a local image and set the sampling backdrop.
  2. Select 2–12 palette colors and extract, or inspect individual pixels with coordinates and arrow keys.
  3. Select a swatch to inspect its formats, then copy or download your palette.

Limits and notes

Images are limited to 25 MB, 24 megapixels, and 12,000 pixels per side. Dominant colors use a sample no larger than 256 × 256 pixels and 4-bit RGB buckets; they are approximations. Fully transparent sampled pixels are ignored, other pixels are composited on the backdrop. Selected percentages may not sum to 100%. Browser-decoded sRGB only; no remote image fetching.

How your privacy works →

Color palette from image: common questions

Are these every color in the original image?

No. The palette summarizes the largest color groups in a downsampled image. Use original-pixel sampling for a specific visible pixel instead.

Is my image uploaded or saved?

No. Decoding, sampling and palette extraction run locally. Refreshing or leaving the page resets its in-memory state. Clear image removes the loaded image and extracted palette; Clear swatches removes saved swatches. The current selected color is separate, and these actions do not clear clipboard contents or downloaded files.

How do I extract a palette from an image?

Choose or paste a supported local still image, set Sampling backdrop and Palette colors, then press Extract palette. Loading alone does not extract or sample the initially displayed coordinate.

How do I export the palette?

Use Copy palette HEX or TXT/CSS/JSON palette downloads. JSON includes hex and computed percent fields; CSS uses numbered root variables. These palette blobs are UTF-8 plain text and separate from saved-swatch exports.

Tool guides