Color Palette from Image
Extract dominant colors from any image using k-means clustering with CSS, Tailwind, Figma, and ASE export.
About this tool
Upload any image and extract its dominant color palette using k-means clustering — the same algorithm used by professional design tools. Choose 5, 8, 10, or 12 colors with the slider. Each extracted color is matched to the nearest named CSS color for easy reference. Export in four formats: CSS custom properties, Tailwind CSS config, Figma-compatible JSON, or Adobe ASE binary. The harmony analyzer checks whether your palette is complementary, analogous, triadic, or split-complementary. The built-in accessibility checker computes WCAG contrast ratios between all color pairs and flags which combinations pass AA or AAA standards.
How to use
- 1 Click 'Upload Image' or drag-and-drop any JPG, PNG, WebP, or GIF.
- 2 Adjust the color count slider to 5, 8, 10, or 12 swatches.
- 3 Click 'Extract Palette' — results appear with hex codes and nearest CSS color names.
- 4 Choose an export format (CSS variables, Tailwind, Figma JSON, ASE) and click Download.
- 5 Review the Harmony Analysis and Contrast Accessibility panels below the palette.
Frequently Asked Questions
Upload an image and extract its dominant colors as a beautiful palette.
Generate harmonious color palettes from a base color using complementary, analogous, triadic, and other harmony rules.
Check WCAG 2.1 contrast ratios for foreground/background color pairs and get pass/fail results instantly.
Generate random single colors or harmony-aware palettes with HSL constraints, locked colors, export to CSS/HEX/RGB/HSL, and palette history.