Tailwind Color Generator
Your input stays in your browser and is never sent.Build the 11-step Tailwind CSS palette (50 to 950) from one base color, and copy it as @theme (v4), tailwind.config (v3) or a plain HEX list.
- Enter
- See the result
From the base color, lighter steps (50–400) and darker steps (600–950) are built. Lightness is set in OKLCH, which is close to how people see color.
What is the Tailwind color generator?
The Tailwind color generator builds the same 11 steps Tailwind CSS uses for its colors — 50, 100, 200 … 900, 950 — from one base color. It suits you when you want to use your brand color as a Tailwind color.
Your base color becomes step 500 as it is, and the lighter and darker steps are built around it with the same hue. Copy the palette as @theme (Tailwind v4) or tailwind.config (v3).
No sign-up or login, and it's free.
How to use the Tailwind color generator
- Enter the base colorPick a color, or type it as HEX, rgb(), hsl() or a color name.
- Name the colorType a name such as brand. It is used in Tailwind class names such as bg-brand-500.
- Pick a format and copyChoose @theme, tailwind.config or a HEX list, then copy and paste it.
Features of SOKUFU's Tailwind color generator
- All 11 steps at once
- 50 to 950 are built together. Press a step to copy its HEX.
- Your base color stays as 500
- The color you enter is used for 500 unchanged, so your brand color doesn't drift.
- Lightness set in OKLCH
- Lightness and vividness change step by step in OKLCH, which is close to how people see color.
- v4 and v3 formats
- Output as @theme (Tailwind v4) or as tailwind.config (v3).
- Runs in your browser
- Nothing you enter is ever sent to a server.
- Works on phones
- The layout adapts to your screen, so it works on phones and tablets too.
How Tailwind's color steps work
A Tailwind color has 11 steps: 50 is the lightest and 950 the darkest. 500 is the base. Smaller numbers are pale colors for backgrounds, and larger numbers are for text and dark parts.
This tool keeps the base color's hue and changes lightness and vividness step by step. The values it makes are not looked up from Tailwind's official palette.
Pale steps (50–200) are typical for backgrounds and hover states, and dark steps (600–800) for text and buttons.
Related tools to use with the Tailwind color generator
- Color Contrast CheckerUse it to check whether the text and background in your palette make a readable pair.
- Color Code Converter (HEX, RGB, HSL)Use it to turn a brand color given as RGB or HSL into HEX.
- CSS Gradient GeneratorUse it to build a background gradient from the colors you made.
Tailwind color generator FAQ
Will the colors match Tailwind's official ones?
No. They are calculated from your base color instead of being looked up in the official palette, so even a similar blue differs a little from the official values.
What is the difference between @theme and tailwind.config?
@theme is how Tailwind v4 defines colors in CSS, as --color-name-step. tailwind.config is the JavaScript settings file used in v3.
Which characters can the color name use?
Lowercase letters, digits and hyphens. Other characters are removed, and if nothing is left the name becomes brand.
Can I use a color close to white or black?
Yes, but the steps differ less. If the base is extremely light or dark, start from a slightly more saturated color to get a wider spread.
Is the base color I enter sent to a server?
No. The 11 shades and the code are calculated in your browser. The base color and the name you give it are not sent anywhere.
Related tools
- Dummy Image GeneratorMake a placeholder image on the spot by choosing its width, height, colors and text. Save it as PNG, JPG, WebP or SVG, or copy it as a data URI.
- CSS Gradient GeneratorBuild linear, radial and conic gradients by moving the angle and color stops, then copy the CSS. The CSS shown is exactly what the preview uses.
- Gradient Image GeneratorTurn a linear, radial or conic gradient into an image of any size and download it as PNG, JPG or WebP. Handy for backgrounds and wallpapers.
- Color Code Converter (HEX, RGB, HSL)Convert a color code between HEX, RGB and HSL in any direction. Every form is listed side by side, including the one PowerPoint accepts.
- RGB to HEX ConverterTurn an RGB value (59, 130, 246) into a HEX color code (#3B82F6). The forms without # and with alpha are listed too, ready to copy.
- HEX to RGB ConverterTurn a HEX color code (#3B82F6) into RGB (59, 130, 246). The R, G and B numbers PowerPoint asks for can each be copied on their own.
- CSS Cursor ListBrowse all 36 values you can give the CSS cursor property and try each as a real cursor. Press a card to copy cursor: value;.
- Color Contrast CheckerCalculate the contrast ratio between a text color and a background color and check it against WCAG 2.x AA and AAA for normal text, large text and UI components.
- Image Color PickerLoad an image and press anywhere on it to get that spot's color as HEX, RGB and HSL. The five main colors of the whole image are listed too. The image never leaves your device.
- CSS Filter GeneratorMove sliders for nine CSS filter functions — blur, brightness, contrast, grayscale and more — and copy the CSS while watching Before and After. You can try it on your own image.
- Markdown Table GeneratorBuild a Markdown table by choosing rows and columns. Paste from Excel or Google Sheets, and export as HTML or CSV too.
- Digital Stamp CreatorMake round, square, or date hanko stamps and save them as transparent PNG images.
- Japanese Resume (Rirekisho) BuilderMake a JIS-standard Japanese resume (rirekisho) PDF, with era dates and an ID photo.
- Schema Markup GeneratorCreate JSON-LD schema markup by filling in a simple form. Local business, organization, article, FAQ and breadcrumb.
- QR Code GeneratorMake a QR code from a URL, text, Wi-Fi login and more. Change the colors, dot shape and add a logo.
- Random Number GeneratorGenerate random numbers in any range. Choose how many, whether to avoid duplicates, the number of decimal places and the sort order. Handy for raffles and drawing numbers.
- Online Ruler (Actual Size)Show a ruler on your screen at real-world size. Match the screen to a card you have on hand, then measure in cm and mm or in inches. Free, no sign-up.
- Japanese Name GeneratorGenerate random Japanese names by combining common surnames and given names. Choose male or female names; each is shown in Latin letters with its kanji. Handy for naming characters in stories and games.
- Username GeneratorGenerate random usernames for games and social media. Choose English word pairs or random letters, and set the separator, capitalization, trailing digits and length.
- Bingo Card GeneratorMake 5×5 bingo cards, up to 24 at once, and print them as they are. Numbers come from the standard range for each column without repeats, and you can choose whether the center is a free space.
- Drawing Prompt RouletteSpin a wheel to choose what to draw next. Over 30 prompts that pair a subject with a scene are included, and you can rewrite them for practice or events.