Did you find this tool helpful?

Free Color Palette Generator

Upload any image to extract its dominant colors. Copy HEX, RGB or HSL values with one click — or export the full palette as CSS, JSON or PNG.

Upload Image

Drag & drop or click to upload

JPG, PNG, WebP supported
Preview
Settings
Number of Colors
Color Format
Random Palette
Extracted Palette

Upload an image to begin

Colors will appear here

What Is a Color Palette Generator?

A color palette generator analyses an image and identifies its most visually significant colors. This is invaluable for designers who want to create cohesive color schemes from photographs, brand images, or artwork. Instead of manually sampling dozens of pixels with an eyedropper, you get the dominant palette in seconds.

EazyStudio's tool works entirely in your browser using the HTML5 Canvas API — your image is never sent to a server. Choose how many colors to extract (4–12), switch between HEX, RGB and HSL formats, and export the result as CSS custom properties ready to paste directly into your stylesheet.

HEX, RGB and HSL — Which Should You Use?

HEX (e.g. #e84545) is the most widely used format in CSS and design tools — paste it anywhere. RGB (e.g. rgb(232, 69, 69)) is useful when you need to manipulate color channels or apply opacity with rgba(). HSL (e.g. hsl(0, 78%, 59%)) describes hue, saturation and lightness — the most human-readable format for understanding how a color relates to others in the palette.

How to Build a Brand Color Palette

Start by uploading your hero image, product photo or logo to extract 6–8 dominant colors. Remove very dark and very light shades — you'll typically want 1–2 primary accent colors, 2–3 supporting midtones, and 1 neutral. Export as CSS variables and apply them throughout your project for immediate visual consistency.

Frequently Asked Questions

How does the color extraction work?
The tool samples pixels from your image using the HTML5 Canvas API, groups similar colors into buckets, and returns the most frequently occurring distinct colors. Everything runs locally in your browser — no image is ever uploaded to any server.
How many colors can I extract?
You can extract 4, 6, 8, 10 or 12 dominant colors. Use the Number of Colors selector on the left to choose. 6 is a good default for most design projects.
What export formats are available?
You can export as CSS custom properties (paste directly into your :root {} block), a JSON array for use in code, or a PNG color strip — a horizontal bar showing all palette colors, great for mood boards and presentations.
What is the random palette generator?
The random palette on the left generates 5 random colors without needing an image. Click any swatch to copy its color code, or click Regenerate to get a fresh set. Good for quick inspiration or placeholder palettes.

Related Tools