Color Palette Extractor — Get Colors from Any Image
Drop in a photo, logo or screenshot to pull out its main colours. Copy any HEX code with a click, pick exact colours straight off the image, and export the palette as CSS, Tailwind, SCSS or JSON.
UtilityRuns in your browser — nothing uploaded
How it works
- 1
Reads every pixel
The image is scaled to a working size and every visible pixel is counted. Transparent areas are ignored, so logos on transparent backgrounds work cleanly.
- 2
Groups colours the way eyes see them
Pixels are clustered in the OKLab colour space, where equal distances look equally different. That keeps a small bright accent from being swallowed by a large background.
- 3
Shows real colours
Each swatch is a colour that actually appears in the image — not a muddy average — ordered by how much of the image it covers.
- 4
Ready for code
Every swatch shows HEX, RGB and HSL plus whether white or black text reads better on it. Export the set as CSS variables, a Tailwind v4 theme, SCSS or JSON.
Questions, answered
No. The image is read and analysed in your browser. Nothing is sent to a server.
Five or six suits most brand palettes and UI themes. Use more for detailed illustrations or photos; the tool stops early if the image has fewer distinct colours.
Click anywhere on the image. The colour under the pointer is copied as a HEX code.
Swatches are ordered by how much area they cover, and backgrounds are big. Crop the image to the part you care about, or use a logo with a transparent background.
CSS custom properties, a Tailwind v4 @theme block, SCSS variables, JSON (with RGB and coverage) or a plain list of HEX codes.