नेपाली

Color Palette from Image

Pull the main colours out of any picture.

Works offline

About this tool

Choose a picture (JPEG, PNG, WebP or GIF, up to 30 MB) and pick how many colours you want, from 2 to 12. The colours are grouped with the median-cut method on the pixels, and each swatch shows its hex value, rgb() and hsl() forms and the share of the picture it covers.

Copy all hex values at once, or copy them as CSS variables in :root form. The picture is shrunk and analysed on this device — the page states nothing is uploaded.

How to use it

  1. Choose the picture, or drop it here.
  2. Set how many colours you want (2–12) with the slider.
  3. Copy the swatches as hex values or CSS variables.

Frequently asked questions

How are the colours chosen?

Median-cut grouping over the picture's pixels: the pixel groups are split where they are most crowded, then each group is averaged into one swatch.

Which formats can I use?

JPEG, PNG, WebP or GIF, up to 30 MB, checked by the file's content rather than its name.

Can I get the colours as CSS?

Yes — “Copy as CSS variables” gives :root { --color-1: …; } ready to paste into a stylesheet.

Does it work without internet?

Yes. Open this page once while you are online; after that it keeps working without internet. We tested this with the network switched off.

Are my files uploaded?

No. This tool runs in your browser on your device, so what you enter or open here is not sent to our server.

Is it free?

Yes. This tool is free to use and needs no account.

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