Color Palette from Image
Pull the main colors out of any photo or logo.
Runs in your browserFree, no sign-upOpens JPG, PNG, WebP
Loading tool…
How to use it
- Choose or drop an image.
- Set how many colors you want.
- Copy the HEX codes or CSS variables.
About this tool
Find the dominant colors of a photo, logo or screenshot, with how much of the image each one covers. Copy HEX values or the whole palette as CSS variables for your theme.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
How are the colors chosen?
The image is shrunk and its pixels are grouped with k-means clustering; each group's average is one palette color.
Images
All imagesMore tools like this
ImagesImage CompressorMake JPG, PNG and WebP images smaller in your browser.Opens filesOpen →ImagesImage ResizerResize images to an exact width or a preset.Opens filesOpen →ImagesImage ConverterConvert images between PNG, JPEG and WebP.Opens filesOpen →ImagesBanner & Social Card MakerDesign banners, social posts and link preview images in seconds.Opens filesOpen →ImagesImage CropperCrop images freely or to 1:1, 4:3, 16:9 and other ratios.Opens filesOpen →ImagesRotate & Flip ImageRotate by 90°, straighten by any angle and mirror images.Opens filesOpen →ImagesPhoto Filters & AdjustmentsBrightness, contrast, saturation, blur and one-click filters.Opens filesOpen →ImagesAdd Watermark to ImageAdd a text or logo watermark, in a corner or repeated.Opens filesOpen →