What median cut does
Median cut treats every pixel as a point in RGB space, finds the channel with the widest spread, splits it at that channel's median, then recurses until the target colour count is reached. Each box contributes its average colour, weighted by pixel share. This preserves distinctive colours better than plain averaging, which blends vivid tones and backgrounds into grey. Colour count sets how many splits occur; sampling interval sets how many pixels are skipped between samples.
Steps
- Upload an image and run extraction.
- Set colour count to five to ten — five or six for palettes, three or four for clean gradients.
- Display as HEX for code, RGB for computation, HSL for tonal adjustment.
- Sampling interval trades speed for precision on very large images.
- Copy all values, or download CSS variables as a file.
Using proportions
The dominant share is usually background, with the second and third carrying the subject. In interfaces, take the dominant colour for large surfaces, the next two for primary and accent, and the tail for borders and dividers. Never spend all five equally; a 60-30-10 split holds together. If the top colour is near-white grey, the image is airy and the palette will look empty without manual darkening or saturation.
Why it differs from perception
Continuous gradients break into several near-identical tones that read as duplicates. Small vivid accents get outvoted by area even when they define the image. Transparent PNG regions count as a colour and can inject an odd entry. JPEG noise in shadows produces dirty darks. And colour profiles shift values, since browsers assume sRGB and tagged images may not match.
Limits
It suits quick palettes from brand shots, landscapes and product images, sets a mood for layouts, generates CSS theme variables and profiles competitor visuals. It cannot restore exact brand colours, predict print, or replace aesthetic judgement. Extraction reports statistics, not design decisions — you still choose which tones serve the content.