⚡
usefultools.dev
🖌️

Image Color Extractor

NOUVEAU

Extract the dominant colors from any image and copy them as HEX, RGB or a CSS palette.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Drop an image here, paste one (Ctrl+V), or choose a file.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Share
Image of 50% #e53935, 30% #1e88e5, 20% #fdd835, 3 colours
#e53935 50.0%, #1e88e5 30.0%, #fdd835 20.0%
Merging
Same image, 2 colours
#9a5777 80.0%, #fdd835 20.0%
Ignore white
Image of 70% white, 20% #008000, 10% #c81e1e, 3 colours, ignore white
#008000 66.7%, #c81e1e 33.3%
CSS
Palette of 3 colours as CSS
:root { --color-1: #e53935; --color-2: #1e88e5; --color-3: #fdd835; }
📖

Présentation

An image colour extractor finds the colours that define a picture, so you can build a website palette from a photo, match a brand colour to a logo or pull a theme out of a hero image. Instead of picking pixels by hand, the tool analyses the whole image and returns the dominant colours ordered by how much of the picture they cover.

It downsizes the image, groups similar pixels and runs a median-cut quantisation followed by a few k-means refinement passes to find representative colours. Choose between 2 and 16 colours, optionally ignore white backgrounds, and see each colour with its HEX value, RGB value and percentage share.

Copy the palette as a HEX list, RGB list, CSS custom properties or JSON, or download it as a PNG swatch strip. Everything is processed in your browser, so your images stay private.

Pourquoi utiliser cet outil ?

  • Dominant colours with their percentage share
  • Median-cut plus k-means for accurate palettes
  • Export as HEX, RGB, CSS variables or JSON
  • Download the palette as a PNG strip
  • Private: no upload, works offline
⭐

Fonctionnalités

🎨

Dominant colours

Between 2 and 16 colours ranked by how much of the image they cover.

📊

Share per colour

Every colour shows its percentage of the counted pixels.

🧹

Ignore white

Skip near-white backgrounds so product photos give useful colours.

🧾

Four export formats

HEX list, RGB list, CSS variables and JSON.

💾

Palette image

Download the palette as a PNG strip with HEX labels.

📋

Drop, paste or browse

Works with PNG, JPG, WebP, GIF and SVG images, or a pasted screenshot.

🛠️

Mode d'emploi

1

Add an image

Choose a file, drop it on the page, paste it, or try the sample.

2

Set the palette size

Use the slider to pick 2 to 16 colours and tick Ignore white if needed.

3

Review the colours

Check each colour, its RGB value and its share of the image.

4

Copy or download

Click a swatch to copy its HEX, copy the whole palette, or download it as a PNG.

🤔

Questions fréquentes