Skip to content
Thumbnails tools

Thumbnails

Color Palette Generator From Image

Extract the main colors of a thumbnail, photo or logo: up to 8 colors with HEX codes, text contrast and PNG, CSS and JSON export. Runs in your browser: the image is never uploaded. Free, no signup.

  • Free · no signup
  • Stays in your browser

Drop an image here, paste it with Ctrl+V / ⌘V, or

JPG, PNG, WebP or GIF. The image stays on your device.

Open an image to see its main colors, from the most to the least used.

What it does — and what it can't

Can do

  • Up to 8 dominant colors with HEX codes
  • Text contrast for each color pair

Limitations

  • Pick “brand” colors for you — it reports what is in the image

How to use the Color Palette Generator

  1. 1 Open an image: choose a file, drag it onto the box or paste it with Ctrl+V / ⌘V.
  2. 2 The main colors appear at once, sorted by how much of the image they cover.
  3. 3 Change the number of colors from 2 to 8 to get a broader or a tighter palette.
  4. 4 Copy the HEX codes or download the palette as PNG, CSS variables or JSON.

How the palette is found

The image is scaled down and its pixels are grouped by similarity with a k-means clustering algorithm. Each group becomes one palette color, the average of its pixels, and the share shows how much of the image it covers. Fully transparent pixels are ignored.

Palettes for YouTube thumbnails

Strong thumbnails usually rely on two or three dominant colors with clear contrast between subject and background. Extract the palette of your best thumbnails and of top videos in your niche to see which colors stand out in the feed, then reuse your own palette for a consistent look.

Download a thumbnail with the Thumbnail Downloader first, then open it here.

Text contrast for every color

Each color shows the WCAG contrast ratio for white and black text on it, with the grade: AAA (7:1), AA (4.5:1), AA Large (3:1) or Fail. Use it to choose a title color that stays readable on a small phone screen.

Export formats

PNG gives a swatch strip with the HEX codes, handy for mood boards. CSS gives ready-made custom properties (--palette-1 …). JSON lists HEX, RGB, HSL and coverage for scripts and design tools.

Frequently asked questions

How do I get a color palette from an image?

Open the image above. The main colors appear right away; copy them or download the palette.

How many colors can I extract?

From 2 to 8. Fewer colors give the dominant tones; more colors also catch accents.

Is my image uploaded?

No. The palette is computed in your browser and the image never leaves your device.

Why do I get slightly different colors with a different count?

Each color is the average of a group of similar pixels. With more colors the groups are smaller, so the averages move closer to the individual tones.

Honest numbers. Nothing we can't back up.