Tailwind-Farbabstufungs-Generator

So wird es benutzt 3 Schritte
  1. Wählen Sie eine Grundfarbe oder geben Sie ihren Hex-Wert ein.
  2. Vergeben Sie einen Farbname für die Konfiguration und wählen Sie das Ausgabeformat.
  3. Drücken Sie Skala erzeugen und übernehmen Sie sie mit Kopieren in Ihre Konfiguration.
Abstufungsskala
Konfiguration

Die Skala entsteht, indem der Grundfarbton in Richtung Weiß und in Richtung Fast-Schwarz interpoliert wird – so wie auch Tailwinds eigene Paletten aufgebaut sind, mit leicht erhöhter Sättigung am hellen Ende, damit blasse Töne nicht grau wirken. Ihre Grundfarbe bleibt exakt erhalten und wird der Stufe zugeordnet, auf die ihre Helligkeit natürlich fällt.

So funktioniert dieses Werkzeug

Ihre Farbe wird in Farbton, Sättigung und Helligkeit zerlegt, und elf Abstufungen entstehen, indem der Farbton gehalten und die Helligkeit durch einen festen Zielwert je Stufe ersetzt wird — 97 für Stufe 50 bis hinunter zu 15 für Stufe 950. Über die Helligkeit zu arbeiten statt zu Weiß und Schwarz zu mischen, hält die Familie erkennbar: Mischen mit Weiß entsättigt beim Aufhellen, und das helle Ende driftet ins Graue.

Die Stufe, deren Zielhelligkeit Ihrer Farbe am nächsten liegt, behält Ihre Farbe exakt und wird mit einem Stern markiert, sodass die Skala um das gebaut wird, was Sie angegeben haben, statt es zu ersetzen. Zwei Korrekturen verhindern flaue Enden: Abstufungen heller als 80 bekommen etwas Sättigung zurück, das dunkelste Ende verliert einen Bruchteil. Die Ausgabe gibt es als eigene Eigenschaften oder als Tailwind-Konfigurationsfragment, wobei der eingegebene Name auf einen gültigen Bezeichner reduziert wird.

Was eine erzeugte Skala für Sie entscheiden kann und was nicht

  • Die Stufen sind gleichmäßig in der Helligkeit verteilt, nicht im wahrgenommenen Unterschied: Das menschliche Sehen reagiert im mittleren Bereich empfindlicher auf Veränderung, der Abstand zwischen 500 und 600 wirkt deshalb größer als der zwischen 50 und 100, obwohl die Rechnung gleichmäßig ist.
  • Kontrast wird hier nicht geprüft: Die Skala entsteht allein aus der Helligkeit. Ob Stufe 500 weißen Text tragen kann, ist eine eigene Frage, und die Antwort hängt vom Farbton ab — ein Gelb ist bei gleicher Helligkeit weit heller als ein Blau.
  • Ihre Ausgangsfarbe behält ihren exakten Wert: Sie wird der nächstgelegenen Stufe zugeordnet, statt auf einen Zielwert geschoben zu werden. Eine sehr helle oder sehr dunkle Eingabe landet damit nahe einem Ende, und die Skala ist um sie herum unsymmetrisch.
  • Der Farbton bleibt über die ganze Familie konstant: Das lässt sie als eine Farbe lesen. Von Hand gebaute Paletten verschieben den Farbton zu den Enden hin oft leicht, und diese Verfeinerung lohnt sich, nach Augenmaß hinterher vorzunehmen.

What the numbers mean

The 50-to-950 scale is a lightness ladder, not a saturation or brightness one. 50 is the palest tint, 950 the deepest shade, and 500 sits roughly in the middle where the colour is most itself.

The convention came from Tailwind and has spread well beyond it, largely because it solves a naming problem. "Light blue" and "dark blue" stop scaling the moment you need a third and fourth step; numbers do not.

The [msm_tool slug="tailwind-shades"] generates all eleven steps from one colour by holding the hue and saturation and replacing the lightness with a fixed target per step.

Why lightness rather than mixing

The obvious way to make a tint is to mix toward white, and the obvious way to make a shade is to mix toward black. Both desaturate as they go, and the pale end drifts toward grey.

Working in lightness keeps the hue and saturation intact, so step 100 still reads as recognisably the same colour as step 900. That is what makes the family cohere. Two small corrections stop the ends going flat: shades lighter than 80 lightness gain a little saturation back, and the darkest end loses a fraction.

Your colour keeps its exact value

The step whose target lightness sits closest to your input keeps your colour exactly and is marked. The scale is built around what you supplied rather than replacing it with the nearest target.

One consequence worth knowing: if your brand colour is very light or very dark, it lands near one end and the scale is lopsided around it. A pale mint might land at 200, leaving only two steps above it and eight below. That is accurate rather than broken, but it means you have fewer light steps to work with than the numbering suggests.

Contrast is not checked

The scale is generated from lightness alone, and lightness is not contrast.

Whether step 500 can carry white text differs by hue: a yellow at a given lightness is far brighter than a blue at the same one, so a yellow-500 will fail with white text where a blue-500 passes comfortably. There is no step number that is universally safe.

The practical approach is to check each step you intend to use as a background and record which ones take white text and which take dark. Do that once per palette and it stops being a question.

Even steps are not even perception

The lightness targets are evenly spaced. Human vision is not evenly sensitive across the range — we notice change more in the mid tones than at the extremes.

The gap between 500 and 600 therefore reads as larger than the gap between 50 and 100, despite the arithmetic being regular. Hand-tuned palettes such as Tailwind's own account for this, which is why a generated scale and a designed one differ even when both look reasonable in isolation.

Hue is held constant, and that is a choice

Holding the hue is what makes the scale read as one colour. Hand-built palettes often shift the hue slightly toward the ends — warming the light tints, cooling the dark shades — because it mimics how pigment behaves and looks richer.

That refinement is worth making by eye afterwards if the palette matters. Start with the generated family, then nudge the two extremes.

Assigning steps to roles

A workable default, adjusted per palette:

  • 50–100 — page and card backgrounds, subtle fills, hover states on light surfaces.
  • 200–300 — borders, dividers, disabled states.
  • 400–600 — the colour proper: buttons, links, icons. 500 or 600 is usually the primary.
  • 700–800 — hover and active states for the above, and text on light backgrounds where the brand colour must appear as text.
  • 900–950 — dark surfaces, and text in dark mode.

The value of assigning roles rather than picking shades by eye each time is that changing the brand colour re-derives the whole interface. Picking by eye does not.

Which output format

Custom properties for plain CSS, or a config fragment that extends a Tailwind theme. Neither is better; use whichever your project reads. If you are on Tailwind, the config form means the classes generate themselves.

Häufig gestellte Fragen

Speziell zum Tailwind-Farbabstufungs-Generator. Allgemeinere Fragen zu dieser Kategorie werden auf der Kategorieseite beantwortet.

Diese Stufe ist exakt Ihre Eingabefarbe. Die Skala wird um sie herum gebaut und sie der Stufe zugeordnet, deren Zielhelligkeit ihr am nächsten liegt.
Nein. Die Paletten von Tailwind wurden von Hand abgestimmt. Hier entsteht eine konsistente Familie aus Ihrer Farbe, mit derselben Stufennummerierung.
Prüfen Sie es, statt es anzunehmen. Helligkeit allein bestimmt den Kontrast nicht, und die Antwort unterscheidet sich bei gleicher Stufe je nach Farbton.
Bei sehr hoher Helligkeit bleibt wenig Raum für Sättigung. Oberhalb von Stufe 200 wird etwas zurückgegeben, aber ein blasser Ton jeder Farbe ist von Natur aus nahe am Grau.
Dieselben Werte als eigene Eigenschaften für reines CSS, oder als Fragment, das ein Tailwind-Theme erweitert. Keines ist besser; nehmen Sie das, was Ihr Projekt liest.

Abonniere Benachrichtigungen zu neuen Tools, Funktionen und Produktivitätstipps.