Free tool

Color palette from image

Upload a photo, logo or screenshot to extract its dominant colors. You get hex codes you can copy and the share of the image each color covers; the image never leaves your device.

The image stays on your device; nothing is uploaded.

How the color extractor works

The image is drawn onto a small canvas in your browser. Every pixel is sorted into one of 4,096 color groups, the most common groups are ranked, and each swatch shows the average color of its group. Colors that are too close to one already picked are skipped, so you get distinct colors rather than eight shades of the same blue. Transparent pixels are ignored.

Image palette vs live website colors

An image gives you an approximate palette, which is perfect for mood boards, brand inspiration and matching a photo. When you need the exact colors of a website or app, extract them from the page itself. The Traceo color palette extractor reads the hex and RGB values the CSS actually renders and can export them as swatches for Figma.

Tips for better palettes

  • Crop the image to the area you care about; borders and backgrounds count too.
  • Use the original file rather than a screenshot of it to avoid extra compression.
  • Convert the hex codes to RGB or HSL with the HEX to RGB converter when you need to adjust lightness or add transparency.

Check these values on any live website

Traceo is a free Chrome extension that shows the real CSS on any page: hover an element to read its colors in HEX and RGB, font sizes in px and rem, spacing, and contrast, then record and share UI bugs with console and network logs.

FAQ

How do I get a color palette from an image?

Choose an image above. The tool reads it in your browser, groups similar pixels, and shows the eight most common colors with their hex codes and the share of the image each one covers. Click a swatch to copy its hex code.

Is my image uploaded anywhere?

No. The image is read and analyzed locally in your browser with a canvas. Nothing is sent to a server.

Why are the colors slightly different from my design file?

Photos and screenshots contain compression artifacts, shadows and anti-aliasing, so each swatch is the average of a group of similar pixels. For exact UI colors, read them from the live page instead: Traceo's color palette extractor shows the hex values the CSS defines.

What image formats work?

Any image your browser can open, including PNG, JPG, WebP, GIF and SVG. Large images are scaled down before analysis, which keeps it fast without changing the dominant colors.

How do I turn the colors into a design palette?

Pick a dominant color for backgrounds, a strong contrasting color for actions and text, and one or two accents. Then check text and background pairs with a WCAG contrast checker so the palette stays readable.

More free tools