PrivTab

Palet warna daripada imej

Dapatkan palet warna daripada imej

Berjalan dalam pelayar anda · Tiada muat naik

Alat ini dan arahan di halaman ini dalam bahasa Inggeris buat masa ini. Ia berfungsi dengan cara yang sama: semuanya berjalan dalam pelayar anda.

Drag & drop an image here

or

JPG, PNG, WebP, AVIF, GIF, HEIC, SVG and more

Your files stay on your device. Nothing is uploaded.

  • Tiada apa-apa meninggalkan peranti anda
  • Tiada had saiz daripada pelayan
  • Tiada pendaftaran, tiada tera air
  • Percuma

Penukaran popular

How to get a color palette from an image

  1. Choose an image.
  2. Pick how many colors you want: 5, 8, 12 or 16.
  3. Copy the palette as HEX, CSS variables or JSON, or download it as a PNG.

Good to know

  • The colors are sorted by how much of the image they cover, and each swatch shows its share.
  • Click a swatch to add it to your picked colors; click anywhere on the image to pick an exact pixel.
  • Transparent parts of PNG and WebP images are ignored.
  • The PNG shows each color with its HEX code, ready for a style guide.

How the palette is chosen

Similar colors are grouped together (k-means clustering on a smaller copy of the image), so a few pixels of noise don't become a color of their own. For a photo, 8 to 12 colors usually catch both the main tones and the accents.

Your images stay on your device

Everything happens in your browser. Your images are never uploaded, and this site's security policy blocks the page from sending files anywhere.

Soalan lazim

Can I check whether two palette colors are readable together?

Yes: copy the HEX codes into the Color Contrast Checker, which tells you whether text in one color is readable on the other (WCAG AA and AAA).

Is my image uploaded?

No. The colors are worked out in your browser and the image is never sent anywhere.