Interactive Palette Generator
Press Space or click Generate to create a palette. Lock colors you love, drag to reorder, and simulate color blindness.
Palette History
How It Works
Four steps from blank canvas to a palette you love.
Generate a random palette
Click the Generate button or press Space on your keyboard. Five colors are picked at random using HSL color math — each with a balanced saturation and lightness so you never get muddy or washed-out results.
Lock the colors you want to keep
Click the 🔓 icon on any swatch to lock it. Locked colors are frozen in place — the next time you generate, only the unlocked swatches change. Keep locking and regenerating until every color is exactly right.
Drag to reorder
Grab any swatch and drag it left or right to swap its position. The lock state travels with the color, so your locked swatches stay locked after a reorder. This lets you arrange colors from light to dark or by visual weight.
Copy any HEX code
Hover a swatch to reveal its HEX code, then click to copy it to your clipboard. Paste directly into Figma, CSS custom properties, Tailwind config, Canva, or any design tool that accepts HEX values.
How Color Blindness Simulation Works
See your palette through different eyes before you ship.
Choose a vision type from the dropdown
Select Protanopia, Deuteranopia, Tritanopia, or Achromatopsia from the Color Blindness dropdown in the toolbar. The palette updates instantly — no page reload needed.
A color matrix is applied in the browser
Each HEX color is converted to RGB, then multiplied by a clinically-derived simulation matrix. The result approximates how someone with that vision type perceives the color — all computed locally, no server involved.
Your original colors are preserved
Simulation mode only changes what is displayed — the underlying HEX values are never modified. Switch the dropdown back to Off and your original palette is exactly as you left it. Copying a swatch always copies the real HEX, not the simulated one.
How Palette History Works
Every generation is saved automatically
Each time you generate a new palette, the previous one is pushed into the history strip below the tool. Up to 20 palettes are stored per session — no account or login required.
Click any history card to restore it
Spotted a palette you liked three generations ago? Click its card in the history strip and it loads back into the main palette instantly. The palette you were working on is pushed to the top of history so you never lose it.
How Shareable Palette URLs Work
Every palette you generate gets a permanent link — no account, no database, no expiry.
Click ⤢ Share to copy the palette URL
The Share button in the toolbar builds a URL from the 5 current HEX codes and copies it to your clipboard instantly — for example /palette/3A86FF-FF006E-FFBE0B-FB5607-8338EC/. No server request is made.
The HEX codes live in the URL path, not a database
The 5 colors are joined with dashes and placed directly in the path. There is no palette ID to look up and no record stored anywhere — the URL itself is the palette. It works forever as long as the domain is live.
A Cloudflare rewrite serves every /palette/* URL from one static page
A single rewrite rule catches any /palette/HEX1-HEX2-HEX3-HEX4-HEX5/ path and serves the palette page with a 200 status — not a redirect. The hex slug stays visible in the address bar so search engines can index each URL independently.
The palette page parses the colors from the path on load
location.pathname is split on dashes and each segment is validated as a 6-character hex code. Valid palettes render swatches, HEX, RGB, and HSL codes instantly. Invalid URLs show a friendly error with a link back to this generator.
Shareable Palette URL — Common Questions
Answers to what people search for most about palette links.
Common Questions
Answers to what people search for most.