Palette from Image
Drop in an image, choose how many colours you want, and export the palette. The image never leaves your browser.
or drag & drop — JPEG, PNG, WebP or GIF, up to 5MB
How it works
Median cut puts every sampled pixel in one box in RGB space, then repeatedly splits the box that holds the most pixels and spans the most colour along its widest channel, cutting at a point where the value actually changes. Each final box becomes one palette colour: the average of its pixels.
Every sampled pixel lands in exactly one box, so the shares shown add up to 100% of the image. Small areas, like a sun or a button on a photo, usually need a higher colour count before they get a box of their own: if a colour you expect is missing, raise the slider. Colours are listed from the largest share of the image to the smallest. For just the 5 most common colours, use the Image Color Extractor.
Related tools
Color Converter
One value in — HEX, RGB, HSL, HSV, CMYK, Lab, OKLCH and the nearest CSS name out. Copy any format.
Contrast Checker
WCAG 2.1 ratio and WCAG 3.0 APCA Lc side by side, with a live preview and a fix suggestion when a pair fails.
Palette Generator
6 harmony modes from one base colour, including double-complementary. Export as CSS, SCSS, Tailwind or JSON.
Tints & Shades
A 10-step 50-900 scale for design tokens. Tints lighten, shades darken — never swapped.
Gradient Generator
Linear, radial and conic CSS gradients with a live preview and 22 curated presets.
Color Picker
A canvas hue/saturation/lightness picker with keyboard control and your last 10 colours.
Color Wheel
Drag around a hue ring and pick a shade in the triangle, then copy HEX, RGB, HSL, HSV or OKLCH.
OKLCH Color Picker
Set OKLCH lightness, chroma and hue; out-of-gamut values are fitted to sRGB. Copy HEX, CSS oklch() and more.
Color Blindness Simulator
See any palette or image through 8 types of colour vision deficiency.
Image Color Extractor
Upload an image, get its 5 dominant colours — nothing leaves your browser.
Tailwind Color Mapper
Find the nearest Tailwind CSS v3 token for any colour, with the full family scale.
Dark Mode Converter
Turn a light palette into suggested dark-mode colours by inverting HSL lightness. Export :root and .dark CSS.
CSS Variables Exporter
Turn a list of named colours into CSS custom properties, SCSS, Tailwind config or JSON.