Private image color tool

Color palette extractor from any image

Upload a photo, logo, screenshot, or artwork and extract a practical color palette with HEX, RGB, HSB, OKLCH, CSS variables, and JSON output.

Your image is processed locally with browser Canvas APIs and is not uploaded to Palette Lab.

Color palette extractor workspace

Drop an image into the color palette extractor, choose 5-10 dominant colors, and copy the output format that fits your design or frontend workflow.

Extracted color palette

Click a swatch to copy its HEX value, or copy CSS variables and JSON for the whole palette.

Upload an image to extract a color palette.
:root 

Why this color palette extractor helps designers

A color palette extractor is most useful when it turns an image into formats you can reuse immediately.

The color palette extractor analyzes the whole image

Instead of manually sampling one pixel at a time, the color palette extractor groups visible pixels and surfaces dominant colors for a faster starting point.

A Palette Lab illustration of image analysis turning an uploaded photo into dominant color swatches

The color palette extractor outputs useful code

Palette Lab includes HEX, RGB, HSB, OKLCH, CSS variables, and JSON so the extracted palette can move into websites, UI kits, and visual systems.

A Palette Lab illustration of a color palette extractor exporting CSS and JSON code snippets

How to use the color palette extractor

The color palette extractor workflow is deliberately short: upload, inspect, copy, and refine in your design tool if needed.

01

Upload an image to the color palette extractor

Choose a JPG, PNG, WebP, or GIF from your device. The browser decodes the image and prepares a local Canvas sample.

  • Screenshots work well
  • Logos and artwork usually produce cleaner palettes
Choose an image
02

Pick a color palette extractor size

Use 5 colors for a tight brand palette or 8-10 colors when a photo, illustration, or UI screenshot has more variation.

The MVP uses a lightweight browser clustering algorithm so the tool stays fast and private.

03

Copy color palette extractor output

Click any swatch to copy HEX, or copy the full CSS variables and JSON when you need structured output for a project.

Use OKLCH values when you want to refine perceived lightness and chroma in modern CSS workflows.

Copy the palette

Color palette extractor output formats

The Palette Lab color palette extractor focuses on output designers and developers actually paste into projects.

Color palette extractor HEX values

Copy the standard six-digit HEX values used across CSS, Figma, design tools, and brand guides.

Color palette extractor RGB values

Use RGB output when you need canvas work, JavaScript color math, or quick CSS rgb() values.

Color palette extractor HSB values

Read hue, saturation, and brightness to understand how each extracted color behaves visually.

Color palette extractor OKLCH values

Use OKLCH as a modern color reference for perceived lightness, chroma, and hue.

Color palette extractor CSS variables

Copy a ready :root block for quick website prototypes and design token experiments.

Color palette extractor JSON

Export structured color data when you want to transform the palette in build tools or app code.

Color palette extractor FAQ

Answers for designers, artists, and frontend developers using the Palette Lab color palette extractor.

How does the color palette extractor work?

The Palette Lab color palette extractor samples visible image pixels in the browser, clusters similar colors, and returns the most dominant palette colors.

Are images uploaded by the color palette extractor?

No. The color palette extractor runs locally with browser Canvas APIs, so your selected image is not uploaded to a Palette Lab server.

Which image formats does the color palette extractor support?

The tool supports common browser-decodable images such as JPG, PNG, WebP, and GIF. Browser support may vary by device.

Can I use the color palette extractor output in CSS?

Yes. Palette Lab generates copy-ready CSS variables, plus HEX, RGB, HSB, OKLCH, and JSON values for each extracted color.

Use the color palette extractor on your next image

Drop in a screenshot, logo, artwork, or photo and turn it into a practical color palette.

Then copy HEX, CSS variables, or JSON and keep moving.

The color palette extractor is free, private, and browser-based.