Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

Tints & Shades Generator

Turn one color into a Tailwind-style 50–950 scale plus tints, shades and tones, built in OKLCH. Copy hex, RGB, HSL or OKLCH, check contrast, and export CSS, Tailwind or JSON.

Processed locally in your browser — nothing is uploaded.

Tints & Shades Generator

Sits at step 600 of the scale · oklch(54.6% 0.215 262.9)

Lightness is spaced like Tailwind's palettes in OKLCH, with the hue held steady. The outlined swatch is your base color. Click a swatch, or any value below, to copy it.

StepHexRGBHSLOKLCHOn whiteOn black
50sRGB-clamped1.08:1Fail19.36:1AAA
100sRGB-clamped1.21:1Fail17.35:1AAA
200sRGB-clamped1.41:1Fail14.87:1AAA
300sRGB-clamped1.82:1Fail11.47:1AAA
400sRGB-clamped2.66:1Fail7.89:1AAA
500sRGB-clamped3.71:1AA large5.65:1AA
600base5.16:1AA4.06:1AA large
7006.64:1AA3.16:1AA large
8008.69:1AAA2.41:1Fail
90010.34:1AAA2.02:1Fail
95014.72:1AAA1.42:1Fail

Export

:root {
  --brand-50: #f1f6ff;
  --brand-100: #dfeaff;
  --brand-200: #c6daff;
  --brand-300: #a0c0ff;
  --brand-400: #6b9dff;
  --brand-500: #417eff;
  --brand-600: #2563eb;
  --brand-700: #1a52d0;
  --brand-800: #1543aa;
  --brand-900: #173b8a;
  --brand-950: #0d2559;
}

About Tints & Shades Generator

Enter one color — hex, rgb(), hsl(), oklch() or a CSS name — and get a full 11-step scale from 50 to 950 in the shape Tailwind CSS uses, ready to drop into a design system. Your color stays exactly as it is at the step whose lightness is closest (or at the step you pick in Options), and the other ten are spread out evenly on either side.

The Tints, Shades and Tones tabs give the classic ramps instead: your color mixed toward white, toward black, or toward a grey of the same lightness, in as many steps as you like (1 to 20).

Every swatch lists its hex, RGB, HSL and OKLCH values — click any of them to copy — and its WCAG contrast ratio against white and against black, so you can see at a glance which steps work as text on a light or dark background. Export the scale as CSS custom properties, a Tailwind v4 @theme block, or JSON.

Why OKLCH

Mixing in RGB or stepping HSL lightness produces uneven scales: yellows jump from washed-out to muddy, blues look dark long before their numbers say so. This generator works in OKLCH, a color space whose lightness follows how bright colors actually look, so steps with equal spacing look equally spaced. Hue is held constant along the scale, and where a step falls outside what an sRGB screen can show, its chroma (colorfulness) is lowered just enough to fit — the table marks those steps "sRGB-clamped".

Common uses

  • Build a 50–950 brand scale for Tailwind CSS v4 from a single brand color
  • Generate hover, pressed and disabled states that stay in the same hue
  • Find which step of a palette is dark enough for body text on white (4.5:1)
  • Create design tokens or CSS variables for a theme

Example

Input

#2563eb

Output

50   #f1f6ff
100  #dfeaff
200  #c6daff
300  #a0c0ff
400  #6b9dff
500  #417eff
600  #2563eb  ← base
700  #1a52d0
800  #1543aa
900  #173b8a
950  #0d2559

Input

Tailwind v4 export, name: brand

Output

@theme {
  --color-brand-50: #f1f6ff;
  …
  --color-brand-600: #2563eb;
  …
}

Limitations

  • The scale follows Tailwind's lightness curve, but it isn't Tailwind's hand-tuned palette: Tailwind's own colors also drift in hue (yellows warm toward orange as they darken), while this keeps the hue fixed.
  • Output is sRGB. Wide-gamut (Display P3) colors are mapped into sRGB, so a vivid oklch() input may come back slightly less saturated.
  • Contrast is the WCAG 2.x ratio against pure white and pure black; check real text and background pairs with a contrast checker.

Frequently asked questions

What is the difference between a tint, a shade and a tone?

A tint is a color mixed with white, so it gets lighter; a shade is mixed with black, so it gets darker; a tone is mixed with grey, so it gets less saturated while keeping roughly the same lightness. A 50–950 scale combines tints (the low numbers) and shades (the high numbers) around the base color.

How do I make a Tailwind CSS color palette from one color?

Enter your color, then copy the Tailwind v4 export: it is an @theme block with --color-name-50 through --color-name-950 variables, which makes classes like bg-brand-500 and text-brand-900 available. For Tailwind v3, use the JSON export inside theme.extend.colors in tailwind.config.js.

Why generate color shades in OKLCH instead of HSL?

HSL lightness doesn't match how light a color looks: an HSL yellow and blue at 50% lightness differ hugely in perceived brightness, so HSL-based scales look uneven. OKLCH's lightness is perceptual, so equal steps look equal across hues, which is why Tailwind CSS v4 defines its own palette in OKLCH.

Which shade should I use for text on a white background?

Any step whose contrast on white is at least 4.5:1, which passes WCAG AA for normal text; 3:1 is enough for large text and UI components. The table shows the ratio and level for every swatch. In most scales that is step 600 or darker, but it depends on the hue — yellows and cyans often need 700 or 800.

What does sRGB-clamped mean?

The step's ideal color is more saturated than a standard sRGB screen can display, so its chroma was lowered until it fit, keeping the same lightness and hue. It happens most with vivid reds, greens and blues at very light or very dark steps.