What This Tool Does

Select a single base color, and this tool generates the standard 11-step Tailwind CSS color scale (50, 100, 200 ... 900, 950). It outputs the swatches, HEX codes, RGB codes, and a ready-to-paste `tailwind.config.js` snippet.

Inputs Explained

How It Works

The algorithm treats your base color as the '500' shade. Using HSL, it steps the lightness (L) from 97% down to 10% while keeping hue constant. Using OKLCH, it steps the L channel perceptually, yielding much smoother gradients avoiding the 'muddy' look of HSL.

Formula / Logic Used

Shade 50 = L:97%; Shade 500 = Base L%; Shade 950 = L:13%; Step L linearly while damping chroma.

Tailwind CSS Color Palette Generator

Pick one color, get a perfect 11-shade Tailwind palette.

Step-by-Step Example

Base Color: #2563eb (Blue)

Generated Scale:
50: #eff6ff
100: #dbeafe
...
500: #2563eb
...
950: #172554

Use Cases

Assumptions and Limitations

âš  Browser-only, no upload, no storage. Your data never leaves your device.

Frequently Asked Questions

How do I generate gray / neutral / slate Tailwind shades?

In our Tailwind Color Palette Generator, set saturation low (under 10%) and pick a slight hue tint — a tiny bit of blue gives "slate", a touch of warm makes "stone" or "neutral". Tailwind's official families are gray (pure), slate (cool blue-grey), zinc (very neutral), neutral (true neutral), and stone (warm beige). Our tool exports all 11 shades (50-950) in one click. Pro tip: don't mix gray families across a single design — pick one and stick with it. Slate everywhere reads cohesive; mixing slate and stone on one page feels off. Export to CSS variables for easy theming.

How do I export a Tailwind palette as CSS, SCSS, or JSON?

Use the format dropdown next to the export button — pick CSS variables, SCSS variables, JSON, or Tailwind config snippet. CSS gives you :root { --brand-50: #...; --brand-100: #...; }, ready to use anywhere. SCSS gives you $brand-50: #...; with your prefix. JSON returns the full shade map keyed by 50-950. The Tailwind config option drops directly into tailwind.config.js under theme.extend.colors. For design systems, JSON is most flexible because you can transform it into any other format with a small script. Each format includes the source HSL/OKLCH values as comments for traceability.

How do I copy generated Tailwind colors into tailwind.config.js?

Pick "Tailwind config" from the export format menu, then click Copy. You get a ready-to-paste object like: colors: { brand: { 50: '#eff6ff', 100: '#dbeafe', 500: '#3b82f6', 950: '#172554', } } Paste it inside theme.extend.colors in tailwind.config.js. After saving, restart your dev server (or rely on hot reload) — your new utilities like bg-brand-500 and text-brand-700 are immediately available. For multiple custom palettes, just add more keys: brand, accent, surface. Keep names short and meaningful. That's all 93 questions covered. Have a question we missed? Drop us a note - we update this reference regularly based on what real users ask.

Sources and References

Related Calculators

Color Picker & Converter CSS Gradient Generator Box Shadow Generator JSON to TypeScript HTML Entities Encoder Markdown to HTML

Tailwind CSS Color Palette Generator practical guide

Palette generation starts with a base color and creates lighter and darker steps that can be mapped to Tailwind-style shade numbers. This section gives visitors enough context to understand the calculation, choose the right inputs, and decide whether the result is suitable for a rough estimate, a worksheet answer, or a planning discussion.

How to use this developer tool

  1. Start with the value you know best and confirm the unit shown beside the input field.
  2. Fill only the fields requested by the tool. If a field is optional, use it when it changes the real-world result, such as time, rate, power factor, credits, or serving count.
  3. Press calculate, then read the main result together with any secondary values, conversions, warnings, or examples on the page.
  4. Run one simple test case before using the result in a report. A quick mental check catches unit mistakes and misplaced decimals.

Formula or method used

Enter the brand color, generate shades, check contrast for text and backgrounds, then copy only the tokens you will actually use in the design system. The important habit is to keep every input on the same basis before comparing results. For example, do not mix hours with minutes, grams with kilograms, square feet with square meters, or apparent power with real power unless the calculator explicitly converts those units.

Worked example

For a primary blue, generate the 50 to 950 scale, test 600 on white for buttons, test 50 as a soft background, and reserve 900 or 950 for high-contrast text. This kind of small example is useful because it makes the direction of the calculation clear. After the result looks sensible, replace the sample numbers with your real project, class, recipe, prompt, or equipment data.

When this page is useful

Use Tailwind CSS Color Palette Generator for Tailwind themes, design tokens, UI color scales, accessible buttons, dashboards, and brand systems. It is also helpful when you need a fast second opinion before copying numbers into a spreadsheet, invoice, lab note, design brief, homework solution, or project estimate.

Accuracy tips

  • Prefer measured values over rounded or advertised values whenever accuracy matters.
  • Write down the unit beside each number so the same calculation can be checked later.
  • Round final answers to a sensible number of digits; too many decimals can look more accurate than the inputs really are.
  • Use professional guidance for legal, tax, medical, electrical installation, or safety-critical decisions.

Common mistakes to avoid

The most common errors are entering the right number in the wrong unit, forgetting a multiplier such as 1,000, using a default rate that does not match your location, or treating an estimate as a certified result. If the answer seems surprisingly high or low, halve or double one input and see whether the output changes in the expected direction. That simple sensitivity check helps visitors trust the tool and understand the relationship between inputs and results.

Mini FAQ

Can I use this result directly?

For learning, planning, and quick comparisons, yes. For compliance, contracts, tax filing, health decisions, or electrical work, treat the result as a starting point and verify it against official guidance or a qualified professional.

Why do two calculators sometimes give slightly different answers?

Differences usually come from rounding, default assumptions, unit conversions, or whether the tool includes optional factors. Check the formula, input units, and rounding method before deciding which result is more appropriate.