How to use
- poster.jpgPhoto or design
Add an image
- Main colors (4)Shares and hex codes
Extract the main colors with shares
- palette.cssCSS variablespalette.pngColor swatches
Export as CSS variables, PNG and more
Drop an image or click “Choose files”. “Try with a sample” works too.
Choose the number of colours (3–16) and the colour method. The palette is recalculated straight away when you change them.
Check each colour’s share and codes in the list. Press a code to copy it.
Click anywhere on the image to pick the colour under the pointer, like an eyedropper.
Export as CSS variables, Tailwind, JSON, ASE or a PNG swatch image.
What it does
3 to 16 colours automatically
Groups colours with k-means clustering. Change the count and the palette is rebuilt at once. The same image always gives the same result.
Perceptual colour spaces
Measures distances in Oklab (default) or CIE Lab, so colours that look alike end up together. Each swatch shows the average of its pixels in sRGB.
Copy HEX, RGB, HSL or OKLCH
Copy any colour in four notations with one click. The OKLCH value can go straight into a CSS oklch() declaration.
Eyedropper on the image
Click any spot on the image to read that pixel’s colour. Handy for background colours or a photo’s accent.
Developer and designer exports
CSS custom properties on :root, a Tailwind colors block, JSON with shares, Swatch Exchange (ASE) and a PNG of the palette.
Fast on large photos
The image is shrunk to at most 512 px before analysis, and the work runs in a Web Worker, so large photos still finish quickly.
Use cases
- Choose website accent colours that match a photo
- Turn a design’s colours into CSS variables or a Tailwind colour block
- Make a swatch file (ASE) from a photo for use in design software
- Note a logo’s or product photo’s colours as HEX, RGB and HSL for a document
- See which colours fill the most of an image, as numbers
Supported formats
Input
Export
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Extract 3 to 16 colours | Supported | — |
| Analysis in Oklab or CIE Lab | Supported | — |
| Copy HEX, RGB, HSL or OKLCH | Supported | — |
| Eyedropper (click on the image) | Supported | Reads pixels of the shrunken image |
| Export CSS variables, Tailwind, JSON, ASE or PNG | Supported | — |
| Skipping transparent areas | Supported | Pixels with less than 50% opacity are not counted |
| Naming colours (“red”, “navy” and so on) | Not supported | No colour names are given |
| Exact CMYK conversion for print | Not supported | Colours are handled in screen sRGB, so printed colours may differ |
| Colours from video or animated images | Not supported | Still images only |
| Colours from PDF files | Not supported | Export the PDF page as an image first |
| HEIC (iPhone photos) | Partial | Opens only in browsers that support HEIC, such as Safari |
Limits & notes
- Up to 30 MB per file and 16 megapixels (for example 4,000 × 4,000).
- Analysis uses an image shrunk to at most 512 px; fine patterns may be averaged into one colour.
- 3 to 16 colours.
- Animated images (GIF, APNG, animated WebP) are not supported.
- Shares count only non-transparent pixels.
- Works on smartphones. Analysis uses the shrunken image, so it stays light.
Privacy & safety
Reading, shrinking, colour analysis and export all happen inside your browser. Images and file names are never sent to or stored on a server.
FAQ
How do I get a colour palette from a photo?
What is the difference between HEX, RGB, HSL and OKLCH?
How many colours should I pick?
Are CMYK print colours exact?
Where can I use the ASE file?
Is my image uploaded?
Related tools
Color Converter, Contrast Checker & Palettes (Color Studio)
Type one color and see it in HEX, RGB, HSL, HWB, OKLCH and approximate CMYK. Check WCAG contrast against a background (AA/AAA), generate complementary or triadic schemes and a 50–950 OKLCH scale, preview how a palette looks with color-vision deficiency, and export CSS variables or Tailwind config. Nothing leaves your device.
Image Converter
Choose the target format first, then drop images to convert them in bulk. Tune quality per format, use lossless WebP, set a background for transparency and name the output files — nothing is uploaded.
SVG Studio
Load an SVG file or paste code to get a safe preview and a check of what is inside. Shrink it with SVGO, export PNG or WebP, turn it into a data URI, CSS or React code, and format it — all inside your browser.
Image to SVG
Traces a PNG, JPEG, WebP or BMP into an SVG that stays sharp at any size. Best for logos, line art, handwriting and icons. The image is processed only in your browser and never sent anywhere.
PSD Viewer & Layer Export
Open a PSD file in your browser and export the whole image or chosen layers to PNG, JPEG or WebP. No special software needed, and the file is never sent anywhere.
AI File Viewer & Exporter
Open an AI file (.ai, Illustrator’s format) in your browser and export it to PNG, JPEG or PDF, with no design software installed. Works with PDF-compatible .ai files. Your file never leaves your device.
Last updated: