Color Palette Extractor
Drop an image, get its dominant colors. Export as HEX, RGB, HSL, CSS variables, Tailwind config or JSON. Powered by k-means clustering — runs entirely in your browser.
Drop an image, click to browse, or Ctrl/Cmd + V to paste
PNG, JPG, WebP, GIF — anything your browser can decode
From a photo to a complete brand palette in seconds
Designers, web developers and brand professionals constantly need to extract colors from reference images — a competitor's website, a mood-board photo, a screenshot, a logo, a piece of art. This tool does it instantly with k-means clustering, the same algorithm used by Adobe Color and similar professional tools.
So funktioniert es
K-means is a classic clustering algorithm: it groups similar pixels together and finds the "center" (average color) of each group. We sample up to 20,000 pixels from your image (more than enough — visually indistinguishable from analyzing every pixel) and run k-means in RGB space to find the K most dominant clusters. The result is a palette sorted by frequency, so the first color is the one that occupies the most pixels.
Warum k-means und keine anderen Algorithmen?
Popular alternatives like median-cut (used by ColorThief) and Vibrant.js have known issues: they sometimes return colors that are vivid rather than dominant, and their output can vary between runs. Our k-means implementation uses k-means++ seeding with a deterministic golden-ratio fraction, which makes runs reproducible (same image → same palette) and converges to truly dominant clusters.
Exportformate
- HEX list — paste into any design tool.
- RGB / HSL — for code that needs numeric channels.
- CSS variables — drop into
:root { }and reference withvar(--color-1). - Tailwind config — generates a block ready to paste into
tailwind.config.jsundertheme.extend.colors. - JSON — with HEX, RGB and the percentage each color occupies. Ideal for design tokens or programmatic use.
Drei Wege, ein Bild einzufügen
- Click and pick. The drop zone opens a file picker.
- Drag and drop. Drop any image file directly on the page.
- Paste from clipboard. Press Ctrl/Cmd + V after copying an image — works for screenshots, design tools, websites with Copy Image, anything.
Datenschutz
Your image never leaves your device. Every step — decoding, sampling, clustering — happens in your browser tab. We don't have a server-side component for this tool.
Häufige Anwendungsfälle
- Recreate a competitor's brand palette from their website screenshot.
- Pull a Tailwind config out of a moodboard.
- Match a website color scheme to a hero photo.
- Generate design tokens from a piece of artwork or photography.
- Choose accent colors for a slide deck from the cover image.
Häufig gestellte Fragen
- Lädt der Farbextraktor meine Bilder auf einen Server hoch?
- Nein. Ihr Bild verlässt niemals Ihr Gerät. Jeder Schritt — Dekodierung, Pixel-Sampling, K-Means-Clustering — erfolgt vollständig in Ihrem Browser-Tab. Es gibt keine serverseitige Komponente für dieses Tool.
- Welche Exportformate sind für extrahierte Paletten verfügbar?
- Sie können Paletten als HEX-Liste, RGB-Liste, HSL-Liste, CSS-Variablen (bereit für :root {}), Tailwind-Konfiguration (zum Einfügen in tailwind.config.js) oder JSON mit HEX, RGB und Farbfrequenz-Prozentsätzen exportieren. Alle Formate sind mit einem Klick kopierbar.
- Wie funktioniert der Farbextraktions-Algorithmus?
- Das Tool verwendet K-Means-Clustering — denselben Algorithmus, der von Adobe Color und professionellen Tools verwendet wird. Es sampelt bis zu 20.000 Pixel aus Ihrem Bild und gruppiert sie in Cluster, um die dominanten Farben zu finden. Die Ergebnisse werden nach Häufigkeit sortiert, sodass die prominenteste Farbe zuerst erscheint.
- Was sind gängige Anwendungsfälle für einen Farbpaletten-Extraktor?
- Designer verwenden ihn, um Markenpaletten aus Screenshots nachzubilden, Tailwind-Konfigurationen aus Moodboards zu extrahieren, Website-Farben an Hero-Fotos anzupassen, Design-Tokens aus Kunstwerken zu generieren und Akzentfarben für Präsentationen aus Titelbildern auszuwählen.
- Ist der Farbextraktor kostenlos? Wie viele Farben kann ich extrahieren?
- Das Tool ist völlig kostenlos ohne Anmeldung und ohne Limits. Sie können Paletten mit 4, 6, 8, 10 oder 12 Farben aus jedem Bild extrahieren. Da die gesamte Verarbeitung in Ihrem Browser läuft, gibt es keine Nutzungsbeschränkungen oder täglichen Limits.
Verwandte Tools
Verlaufsgenerator
Erstellen Sie wunderschöne CSS-Verläufe mit einem visuellen Editor und kopieren Sie den Code.
Screenshot-Verschönerer
Fügen Sie Ihren Screenshots Verlaufshintergründe, Schatten und abgerundete Ecken hinzu.
Bildoptimierer
Komprimieren Sie JPG-, PNG- oder WebP-Bilder um bis zu 90% ohne Qualitätsverlust.