Color palette from image
Choose an image and Nolo finds its main colors, shows how much of the picture each one covers and gives every color as HEX, RGB and HSL. Copy a single code or export the whole palette as CSS variables, SCSS, Tailwind or JSON.
- ๐ Runs on your device
- โค 0 bytes uploaded
- โ Free, no sign-up, no watermark
How to use Color Palette from Image
- Choose or drop an image (photo, logo or screenshot).
- Pick how many colors you want (3 to 16) and their order.
- Copy any HEX code, or choose an export format.
- Copy or download the palette code, or download it as a PNG.
About Color Palette from Image
The palette is computed from a reduced copy of the image (about 300 px), which is fast and gives the same main colors as the full image. Colors are read in sRGB, the color space of the web.
Is it private?
Yes. Color Palette from Image runs entirely in your web browser using your device's own processor. Your files never leave your device: they are not uploaded to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com, which accepts no files. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Results are kept encrypted on your device for 60 minutes in Your files, then deleted automatically, or straight away with Delete all. How Nolo works.
Questions and answers
Are my images uploaded?
No. Everything happens in your browser on your own device. Your images are never uploaded to Nolo or anyone else, and the tool keeps working with the internet switched off.
How are the colors chosen?
With the median-cut algorithm: the image's pixels are split into groups of similar colors, and each group's average becomes one color. Groups that are almost the same are merged, so a simple logo may give fewer colors than you asked for.
What do the percentages mean?
How much of the image each color covers, counting pixels that belong to its group. Fully transparent pixels are ignored.
How do I use the CSS variables?
Paste the :root block into your stylesheet and use the colors with var(--color-1) and so on. Change the Name field to rename them, for example to brand.
Why is a color slightly different from the one I picked in an editor?
Each swatch is an average of many similar pixels, not one exact pixel. For the exact color of one spot, use the Color Picker.