Lightness Distribution 0-100
Hue Shift
Saturation Shift
Palette Generator and API for Tailwind CSS
Read the launch blog post for full details on how this works.
Palette Creator
Set the initial Value as a valid hexadecimal colour. By default this is stop 500, but it can be changed to any stop from 50-950.
For colours that have 100% Saturation, make the Palette more interesting by shifting the Hue up or down.
Palettes starting from a Base colour with little Saturation get more interesting by increasing Saturation at the extremes.
Shift the Minimum/Maximum Lightness/Luminance to spread out the rest of the colours to the extremes of white and black. Switch between Lightness and Luminance to produce a different spread of colours at the extremes.
These principles are inspired by the excellent Refactoring UI book by Adam Wathan & Steve Schoger. The same book recommends against automated tools, just like this one!
This tool exists to fast-track the creation of new palettes.
Palette API
Any set of Palettes can be fetched via an API. You may find this useful for design tools that need to generate a 50-950 Palette from just a single Hex value.
Currently, the API will only return a Palette using the base hex value, with no options to have HSL tweaks.
Credits
Made by Simeon Griggs
- Designed with Tailwind CSS (obvs)
- with a sprinkling of Headless UI
- and a dash of HeroIcons
- Built with React Router
- Hosted on Vercel
- Content in Sanity.io
@theme { --color-red-50: oklch(96.61% 0.007 332.41); --color-red-100: oklch(93.32% 0.013 329.73); --color-red-200: oklch(86.47% 0.029 329.4); --color-red-300: oklch(79.03% 0.048 329.41); --color-red-400: oklch(72.31% 0.066 330.59); --color-red-500: oklch(65.66% 0.082 330.14); --color-red-600: oklch(55.05% 0.069 330.11); --color-red-700: oklch(44.63% 0.056 330.04); --color-red-800: oklch(34.99% 0.044 331.27); --color-red-900: oklch(24.48% 0.03 331.51); --color-red-950: oklch(19.05% 0.024 329.91); }
Paste this into the css
file with your Tailwind config