consolelog.tools

Tailwind Color Palette Generator

Turn any base color into a complete 50-950 Tailwind color scale, then export it for Tailwind v4 (@theme), Tailwind v3 (config), CSS variables, an SCSS map, or JSON. Build a multi-color palette, see every shade live with its WCAG contrast rating, and copy a ready-to-paste theme. Everything updates instantly and the whole palette is captured in the URL.

About this ToolHow it works, benefits & use cases

Generate a complete, production-ready Tailwind color scale from any base color, then export it in the exact format your project uses. Give a palette a name (like brand or accent) and a base color - typed as hex, picked from the native color picker, or chosen from a preset - and the tool builds the full 50 through 950 scale anchored on your color at the 500 step. Add as many named palettes as you like and see every shade rendered live, each labelled with the text color (black or white) that meets WCAG contrast best so you can tell at a glance which shades are safe for text. When you are happy, switch the export format: Tailwind v4 emits a CSS @theme block with --color-name-shade custom properties, Tailwind v3 emits a JavaScript config with a nested colors object, and you can also export plain CSS variables, an SCSS map, or JSON for a design-token pipeline. The shade values are identical across every format, everything updates instantly as you tweak, and the whole palette is captured in the URL so you can share it.

How to Use

  1. 1Name a palette and set its base color (type a hex, use the color picker, or pick a preset).
  2. 2The full 50-950 scale is generated live, anchored on your color at 500.
  3. 3Add more colors with Add color to build a multi-palette theme.
  4. 4Pick an export format: Tailwind v4 (@theme), Tailwind v3 (config), CSS variables, SCSS, or JSON.
  5. 5Copy, download, or share the output - the shade values are the same in every format.

Key Benefits

  • Full 50-950 Tailwind scale from a single base color
  • Exports for Tailwind v4 (@theme) and Tailwind v3 (config) from one palette
  • Also exports CSS variables, SCSS maps, and JSON design tokens
  • Multi-palette support for a complete brand theme
  • Live swatches with WCAG contrast ratings on every shade
  • Native color picker, hex input, and curated presets
  • Runs entirely in your browser and is fully shareable via URL

Common Use Cases

  • Creating a brand color scale for a new Tailwind project
  • Migrating a color theme from Tailwind v3 config to v4 @theme (or vice versa)
  • Exporting design tokens as CSS variables, SCSS, or JSON for a non-Tailwind stack
  • Checking which shades of a brand color are accessible for text
  • Sharing a proposed palette with a teammate via a single URL
Live scales
brand
50
100
200
300
400
500
600
700
800
900
950

Copy, download, share, or pipe to another tool

@theme {
  --color-brand-50: #f5f6f9;
  --color-brand-100: #ebebf5;
  --color-brand-200: #d0d1ec;
  --color-brand-300: #a7a8e2;
  --color-brand-400: #6a6de1;
  --color-brand-500: #6366f1;
  --color-brand-600: #2b2ff6;
  --color-brand-700: #0005ee;
  --color-brand-800: #0004bb;
  --color-brand-900: #000388;
  --color-brand-950: #000255;
}

Palettes

Presets:

Tailwind v4 and v3, both ready

Tailwind v4 reads colors from CSS via @theme, while v3 uses a JavaScript config. Pick whichever your project uses - or grab plain CSS variables, an SCSS map, or JSON to feed a design-token pipeline. The shade values are identical across every format.

Accessible by inspection

Each swatch is labelled with the text color (black or white) that meets WCAG contrast best, so you can see at a glance which shades are safe for text. Hover any swatch for its hex and exact contrast ratio.

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools