lifekit

Search tools

Type a tool name, then press Enter to open it.

Color palette from image

Extract a color palette from any image. Get the main colors as HEX, RGB, and HSL, click to pick any pixel, and export CSS variables or JSON.

  • Free
  • Runs in your browser
  • Nothing is uploaded

How to use it

  1. Choose an image, such as a photo, logo, or screenshot.
  2. Set how many colors you want. The palette lists the main colors from most to least used.
  3. Click any color's HEX, RGB, or HSL value to copy it, or click the image to pick an exact pixel.
  4. Copy or download the whole palette as CSS variables or JSON.

Private by design

Everything runs on your device. Nothing you enter or open here is uploaded.

Questions

The tool groups similar pixels with k-means clustering and reports the average color of each group, sorted by how much of the image it covers.

Click or tap that spot on the image. The picked pixel's HEX, RGB, and HSL values appear below it, ready to copy.

Colors that cover only a tiny part of the image get merged into bigger groups. Raise the number of colors, or click the accent on the image to pick it directly.

No. Mostly transparent pixels are ignored, so a logo on a transparent background gives you just the logo's colors.

No. The colors are extracted in your browser and the image never leaves your device.