// ~/playground/palette
Palette
Space bar, lock, repeat
Tap space for a new palette. Lock the colours worth keeping and tap again. Pick a harmony rule, or drop in an image and pull the colours out of it. Every colour is worked out in OKLCH, so a step in lightness looks like a step.
PALETTE // 1 LOCKED
Colour 1
space new palette 1–8 lock a colour z back shift+z forward e edit the selected colour c copy its hex k keep on the shelf
Drop an image here, paste one, or choose a file.
The image never leaves your browser. Nothing is uploaded.
- space takes a different set of colours from the same image.
- The numbered dots show where each colour was found.
- Click anywhere on the image to put that pixel in the selected swatch.
- Lock the ones you like, switch back to a rule, and let the rule fill in the rest.
Ledger OverviewReportsSettings Sign in
New
See where the month went
Every account in one place, sorted into categories you choose. How sorting works
Get startedSee a demo
Spent this month
$2,418 12% under
By category, in palette order
Monthly summary by email
you@example.com
Subscribe
Sent on the 1st. Stop any time.
How it picks colours
- OKLCH describes a colour by lightness, chroma (distance from grey) and hue angle. It was built so equal steps in a number look like equal steps to the eye. In HSL, yellow and blue at "50% lightness" are nowhere near the same brightness. In OKLCH they are.
- A rule picks the hues: a set of angles on the wheel, measured from a base hue. Triadic is three spokes 120° apart. If you lock a colour, the rule is hung on its hue, so the new colours are in harmony with the one you kept.
- Kind of colour sets the lightness range and how much of the available chroma to use. The free colours are spread across the lightness range so no two come back alike.
- Chroma has a ceiling that depends on lightness and hue. A screen can show a very strong blue at low lightness and a very strong yellow at high lightness, and not the other way round. When a colour asks for more than the screen has, the chroma is lowered until it fits. Lightness and hue are left alone.
- Each tap draws eight palettes and keeps the one whose two closest colours are furthest apart.
- From an image, the pixels are sorted into about fourteen groups of similar colour (k-means, measured in OKLab). The first palette takes the biggest group, then whichever groups are most unlike the ones already taken. Each tap after that rolls dice with the same leanings.
- Colour-blind rows use the Machado, Oliveira and Fernandes (2009) model at full strength. It is a simulation of what the eye loses, good for spotting pairs that collapse, and not a substitute for asking someone.
- Everything is kept inside sRGB. Wider-gamut (P3) screens can show more, and this tool doesn't use it yet.