Tailwind palette generator
Make a Tailwind color palette from one color: a full 50 to 950 scale, with your color on the step that fits its lightness. Copy it for Tailwind 4 as CSS with OKLCH values, or for Tailwind 3 as config with HEX codes. Free and online, in your browser.
How to generate a custom Tailwind color scale
- 1Type your color or choose it with the color picker
- 2Give it a "Name of the color", such as brand
- 3Check the 11 steps from 50 to 950
- 4Click "Copy for Tailwind 4 (CSS)" or "Copy for Tailwind 3 (config)"
- Your own color scale, ready to paste into Tailwind
What you get
- Your color stays exact.It lands on the step nearest its lightness and is marked "your color"
- Shaped like Tailwind's own.The other steps follow the curve of the nearest Tailwind 4 color, hue shift included
- Tailwind 4 or 3.An @theme block in OKLCH for Tailwind 4, a colors entry in HEX for Tailwind 3
What you can do
- Build the 11 steps 50, 100, 200 up to 900 and 950 from one color you type or pick
- Name the color, for example brand or accent. The name is made lowercase, with only letters, digits and hyphens
- Copy the scale for Tailwind 4 as an @theme block with --color-brand-500 and the like, in OKLCH
- Copy it for Tailwind 3 as a colors entry for tailwind.config.js, in HEX
- Copy a single step's HEX code with the button under its swatch
Good to know
- Tailwind has no official formula for scales. This one borrows the lightness and chroma curve of the nearest Tailwind color, so it looks like Tailwind's, but it is not Tailwind's own
- Your color keeps its exact value. A very light color can land on 50 or 100, a very dark one on 900 or 950, and the other steps fall in around it
- Steps that fall outside sRGB are brought back the CSS way, so every value shows on an ordinary screen
- One color per scale. For a second color, change the color and the name, and copy again
Questions
How do I add a custom color to Tailwind?
Make the scale here and copy it for your version. In Tailwind 4 the @theme block goes into your CSS, in Tailwind 3 the colors entry goes under theme.extend in tailwind.config.js. Then use classes such as bg-brand-500.
Why does the Tailwind 4 copy use OKLCH?
Tailwind 4 writes its own default colors in OKLCH, so the copy for Tailwind 4 uses oklch() as well. The copy for Tailwind 3 uses HEX.
Why is my color on step 600 and not 500?
Your color goes on the step whose lightness in Tailwind's scale is nearest its own. A darker color lands on a higher number, a lighter one on a lower number.
Is this Tailwind's official palette generator?
No. Tailwind has no official formula for making scales. This tool follows the curves of Tailwind's own colors to come close to them.
More tools in Web & code
That page doesn't exist. Search or drop a file below to find the tool you need.
One site for every file job. What’s yours?
Stop hopping between converter sites. Pick from 410+ tools, or a recipe that chains several.
- Files Stay On Your Device
- No watermark
- Works offline
Drop a file here
A pasted file works too.
or search for a tool
Open an app
From “ugh, this file” to done, in three steps.
- Drop it, or pick a task
No file? Search for what you need. Files are processed on your device, not uploaded for processing.
- Pick what you want
Smaller, another format, signed, merged. One click, no settings to study first.
- Make it a recipe
Need three steps in a row every week? Chain them once and run the same recipe next time.
One approved toolbox for the whole team.
In offices, on building sites and in agencies, teams handle sensitive files all day. ToolRecipe gives everyone the same tools and the same recipes, and the files are processed on each person's own computer.
- Files are processed on the employee's device
- Company recipes everyone runs the same way
- One place instead of ten converter sites