Pinatool

Tailwind Color Palette

Turn any single color into a complete 50–950 Tailwind palette. Get 11 harmonious light, medium, and dark shades for your backgrounds, buttons, borders, and text—ready to copy for Tailwind v4, Tailwind v3, or CSS variables.

Customize your colors

Enter any color to automatically generate 11 matching light, medium, and dark shades.

Examples:

The name used in your code, e.g. bg-brand-500.

Color style

Choose whether supporting shades stay natural, punchy, or soft.

Where does this color belong?
Standard buttons use stop 500. Lighter numbers (50–300) are for backgrounds; darker numbers (700–950) are for text.

Shades of brand

11 matching colors from light backgrounds to dark text. Click any color to copy.

Your palette:

Click any color swatch to copy its HEX code.

Preview#2563eb
50 · Dark text ✓Heart of Ice#f6faff
100 · Dark text ✓Veiling Waterfalls#d0e2ff
200 · Dark text ✓Night Snow#abc8ff
300 · Dark text ✓Kitten’s Eye#84adfb
400 · Dark text ✓Olympic Blue#5b8ef4
500 · BASE · White text ✓Bluerocratic#2563eb
600 · White text ✓Denim#164bc1
700 · White text ✓Smalt#0b389c
800 · White text ✓Long-Haul Flight#042778
900 · White text ✓Interstellar Blue#011857
950 · White text ✓Oblivion#000b38

Display ready: All shades are balanced to look clean, sharp, and consistent across phones, laptops, and monitors.

Ready-to-use code:

@theme {
  --color-brand-50: oklch(98.5% 0.017 262.9);
  --color-brand-100: oklch(91% 0.05 262.9);
  --color-brand-200: oklch(83.2% 0.085 262.9);
  --color-brand-300: oklch(74.9% 0.122 262.9);
  --color-brand-400: oklch(66% 0.162 262.9);
  --color-brand-500: oklch(54.6% 0.215 262.9);
  --color-brand-600: oklch(46% 0.193 262.9);
  --color-brand-700: oklch(38.6% 0.169 262.9);
  --color-brand-800: oklch(31.5% 0.143 262.9);
  --color-brand-900: oklch(24.7% 0.117 262.9);
  --color-brand-950: oklch(18% 0.09 262.9);
}

Live preview:

brand theme#2563eb

How It Looks in an App

Preview how your shades work for buttons, borders, cards, and text in both light and dark backgrounds.

How It Works

1

Enter your base color

Pick or type your HEX color code, choose a token name (such as brand or sky), and select which 50–950 shade stop it belongs to.

2

Fine-tune the style

Choose between Natural, Vibrant, and Soft styles, and preview how the shades look on buttons and cards in light and dark mode.

3

Copy ready-to-use code

Export clean @theme tokens in OKLCH for Tailwind v4, standard configuration for Tailwind v3, CSS variables, or JSON.

Tailwind Color Palette Key Features

Keep Your Exact Brand Color

Anchor your exact HEX color to any stop from 50 to 950—such as 400 for bright accents or 600 for deep tones—while the surrounding shades scale smoothly around it.

Built-in Contrast Checks & Live Preview

Every swatch shows whether white or dark text meets readable contrast thresholds, alongside an interactive light and dark UI card preview.

Tailwind v4 @theme & OKLCH Support

Generate perceptually balanced OKLCH tokens inside @theme for Tailwind CSS v4 with automatic opacity modifier support, plus Tailwind v3 config, CSS variables, and JSON.

Frequently Asked Questions

How do I add these colors to Tailwind CSS v4?

In Tailwind CSS v4, custom colors live directly in your stylesheet using the @theme directive. Copy the generated Tailwind v4 code into your CSS entry file (such as globals.css), and shades like bg-brand-500, text-brand-900, and border-brand-200 work immediately.

How do I use this palette in Tailwind CSS v3?

Switch the export tab to Tailwind v3 and copy the generated colors object into your tailwind.config.js file under theme.extend.colors. All 11 shades (50 through 950) become available as utility classes across your project.

Why do OKLCH shades look more balanced than simple tinting?

Basic tint generators simply mix white or black into RGB or HSL values, which turns dark shades muddy and washes out light tints. Generating the scale in the OKLCH perceptual color space keeps lightness steps even and preserves rich color identity.

What does choosing a base shade stop do?

If your brand color is a bright yellow or a deep navy, forcing it into stop 500 distorts the scale. Anchoring your color to the stop where it naturally belongs (for example 400 for bright colors or 700 for dark tones) preserves your exact HEX value while crafting the rest of the scale around it.

How do I know which text color is readable on each shade?

Each swatch checks contrast against white and black text and labels shades that pass the 4.5:1 WCAG AA readability threshold with "White text ✓" or "Dark text ✓".