Images stay in your browser
Images are decoded and analyzed on your device, in a Web Worker. No image or color is sent to a server.
Read the privacy policyAbout
Pull a UI palette from a photo or a single color, get palette ideas and gradients, check contrast and export the code. Free, in your browser.
Open the app
A handful of HEX codes is not a palette. When you build an interface, the real questions are which color is the background, which one goes on the main button, and whether the text is readable.
NN Color Extractor sorts colors into 5 roles, checks their contrast and shows the palette on sample UIs before you export.
Each tool has its own page that opens on it. They all share one palette, so you go from ideas to contrast checks and export without typing anything twice.
The image is scaled down to at most 150×150 pixels and grouped into 8 color clusters with K-Means++. You can choose from 5 to 12.
The cluster with the largest area, after penalizing colors that are too dark, too light or too gray.
A small cluster that clearly differs from the dominant color, measured with the CIEDE2000 color distance.
WCAG 2 ratios and APCA values for every text and background pair. The 50-950 scales and suggested fixes are computed in OKLCH.

CSS, Tailwind v4, shadcn/ui, MUI, Chakra and Material 3 themes, design tokens, Tokens Studio for Figma, SwiftUI, Android, Procreate, Adobe .ase, and VS Code and terminal themes. Copy or download, with 50-950 scales, status colors and chart colors when you want them.
Tailwind palette generatorImages are decoded and analyzed on your device, in a Web Worker. No image or color is sent to a server.
Read the privacy policyNo ads, no sign-up, no limit on the number of images.
The same image and settings always give the same palette. Press Space to try a different grouping.
NN Color Extractor is designed and built by Nghiệp Nguyễn as an everyday tool for interface work.
Open the appUpdated: