Palette extractor
A logo, a photo or a screenshot — and its dominant colours with the share of each. Export as CSS variables, Tailwind, SCSS or JSON.
- File · drag · paste · link
- K-Means++
- HEX · RGB · OKLCH
- 3 credits per image
Image
3 credits per image — charged only once the picture has loaded. Your file never leaves the browser.
Palette
The image's colours will appear here — with the share of each and ready-to-use values.
Paste a screenshot straight onto the page: Ctrl+V / ⌘V.
From pixels to tokens
Step 1. Upload an image
Drop it, pick it or paste it — the file is read straight into the page and never leaves your device. A link is the exception: that address is fetched through our server.
Step 2. K-Means clustering
The algorithm groups the pixels into 4–12 dominant clusters, merging shades that are too similar.
Step 3. Export and use
Copy single HEX values or the whole palette — CSS variables, Tailwind, SCSS, JSON tokens or a PNG sheet.
About palette extraction
How does K-Means color clustering work?
What does the percentage shown next to each color mean?
How do I use the CSS variables export?
:root block with custom properties like --color-1, --color-2, etc. Paste this into your global CSS file and reference the variables anywhere in your stylesheet with var(--color-1). This is the fastest way to use extracted colors in a web project without manually copying hex values.Is my image uploaded to a server?
Can I use extracted colors to create a harmonious palette?
What types of images work best?
What does the JSON export look like and how do I use it?
hex, rgb, oklch and coverage fields. This format works directly as design tokens in tools like Style Dictionary, Theo, or Cobalt. Import it into Figma via the Design Tokens plugin, or use it in JavaScript/TypeScript to programmatically apply colors to generated UI components.Related tools
Other UIXColors tools that pair well with the Image Color Palette Extractor.
- 01 · Tool
Site Style Guide Generator
Extract complete style guides from any website URL: colors, typography, logos, buttons, design tokens. Browser-accurate via real Chromium. Free.
- 02 · Tool
Color Converter
Convert colors between HEX, RGB, HSL, OKLCH, OKLab, CMYK, and named formats. Real-time preview. Free for designers and front-end developers.
- 03 · Tool
WCAG Contrast Checker
Check color contrast ratios for WCAG 2.1 AA & AAA compliance. Test text and background combinations for accessibility. Instant feedback, free.