# Color palette generator

> Find dominant colors in an image.

[Open tool](https://www.toolcabana.com/th/color-palette) · [รูปภาพและการออกแบบ](https://www.toolcabana.com/th/category/images-and-design)

Tool ID: color-palette. Requested language: th. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

Color palette generator finds the dominant colors in an image and lists them as HEX codes with swatches. You choose between 2 and 16 colors. The image is reduced to a small preview, similar shades are grouped, and the most common groups are averaged into palette colors. The palette can be downloaded as palette.txt.

## Supported tasks (en)

Find dominant colors in an image.

## Steps (en)

1. Choose a source file. If the tool accepts multiple files, arrange them in the order you want.
2. Set colors.
3. Run color palette generator, review the output, then use the available copy or download controls.

## Settings

- Colors (en; key: count; type: number); minimum: 2; maximum: 16

## Limitations (en)

Images are limited to 32 megapixels and 16,000 pixels per side. Most operations accept one source; supported batch operations produce a ZIP archive.

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How does the color palette generator pick colors?

It shrinks the image to fit 120 by 120 pixels, groups pixels into coarse color buckets and ranks the buckets by how many pixels they contain. Each palette color is the average of one of the largest buckets.

### Are transparent areas included in the palette?

No. Pixels that are more than half transparent are skipped, so a logo on a transparent background returns the colors of the logo itself rather than colors from the empty areas.

### Why does my palette have fewer colors than I asked for?

The tool can return only as many colors as distinct color buckets it finds. A simple graphic with a few flat colors can produce fewer swatches than the requested count.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Images are limited to 32 megapixels and 16,000 pixels per side. Most operations accept one source; supported batch operations produce a ZIP archive.

## Related tools

- [Color picker from image](https://www.toolcabana.com/th/image-color-picker)
- [HEX RGB HSL converter](https://www.toolcabana.com/th/color-converter)
- [Image collage maker](https://www.toolcabana.com/th/collage-maker)
- [Contrast checker](https://www.toolcabana.com/th/contrast-checker)
