Color Palette Generator

Extract palette from an image — all processing happens in your browser.

Click or drag & drop an image to extract colors

preview

How to Use

1

Pick a base color using the color picker or type a HEX value.

2

Choose a harmony rule (Complementary, Analogous, etc.).

3

Click Generate to create a 5-color palette.

4

Click a swatch to copy its HEX code, or export all as CSS/JSON.

Features

6 Harmony Modes

Complementary, analogous, triadic, tetradic, split-complementary, and monochromatic palettes based on color theory.

Image Color Extraction

Upload any photo and extract the 5 dominant colors using browser-based canvas sampling. Completely private.

Multiple Export Formats

Export palettes as a HEX list, CSS custom properties ready to paste into your stylesheet, or structured JSON.

100% Browser-Based

No server, no file upload, no registration. Works offline once the page is loaded.

Use Cases

Frequently Asked Questions

What is a color palette?

A color palette is a set of colors chosen to work harmoniously together. In design, palettes typically consist of 3 to 7 colors and follow color theory rules such as complementary, triadic, or analogous relationships.

What is the difference between complementary and analogous colors?

Complementary colors sit opposite each other on the color wheel, creating high contrast. Analogous colors are adjacent on the wheel, creating smooth, harmonious combinations with low contrast.

Can I extract colors from an image?

Yes. Drag and drop or upload any image in the second panel. The tool samples pixels across the image using HTML Canvas and clusters similar colors to identify the 5 most dominant hues. Everything runs in your browser — no image is ever uploaded to a server.

How do I use the CSS variables export?

Click 'Copy CSS Variables' to copy a :root { } block with --color-1 through --color-5 variables. Paste it into your CSS stylesheet and reference colors with var(--color-1) etc.

𝕏 Share Facebook LinkedIn Reddit