Tailwind color system generator

Enter one brand color and get a semantic Tailwind CSS v4 color system with light and dark mode, so classes like bg-primary and text-primary-foreground just work.

One brand color in. A complete light and dark UI color system out.

How it works

  1. Enter your brand color in any CSS format, such as #2563eb or oklch(0.55 0.2 260).
  2. Check the live preview and the accessibility results for light and dark mode.
  3. Open the Tailwind v4 export and copy it. Paste it into your main CSS file after @import "tailwindcss".

Roles, not only shades

A scale gives you numbered shades; a color system gives each color a job. This generator names the roles (primary, secondary, muted, accent, destructive, border, ring, and more), each with a matching foreground for text on it. The export maps them in an @theme inline block, so utilities such as bg-primary and text-muted-foreground read CSS variables that switch with dark mode. Every text pair is checked at 4.5:1 and interface parts at 3:1, in both modes, before you copy anything.

Questions

Which Tailwind version is this for?

Tailwind CSS v4. The export uses an @theme inline block that maps the color utilities to CSS variables.

Which classes will work?

Classes such as bg-primary, text-primary-foreground, border-border, ring-ring, and bg-chart-3, and they follow light and dark mode.

Can I get a plain 11-step scale instead?

Yes. The color scale generator turns one color into a scale from 50 to 950 and exports it for Tailwind.

Is my color sent anywhere?

No. Everything is worked out in your browser.