Tailwind CSS Color Generator

Generate perfect Tailwind CSS color scales (50-950 shades) from any hex code using advanced OKLCH color science

Browse Popular Palettes

Click "Apply Theme" to see your color across the entire interface

#

Generated Palette: Purple Family

50#F5F1FA
100#EBE4F9
200#DCCFF6
300#CBB0F8
400#AE7BF4
500#9C51F1
600#8A2BE2
700#751DC6
800#5F1FA0
900#4A1D7F
950#310B5A

Saved Swatches

Click the heart icon on any shade to save it here!

Build your own custom color collection

About this Cyberpunk Purple Palette

This Tailwind CSS 'Cyberpunk Purple' color scale is generated based on the hex code #8A2BE2. Built using the advanced OKLCH color space, this 11-step palette (spanning from shade 50 to 950) ensures perceptual uniformity, making it ideal for consistent UI design and WCAG-compliant text contrast.

Unlock Professional Color Tools

  • Recolor SVG icons & illustrations — apply any Tailwind palette to your vector assets in seconds
  • Brand color matching — Shuffle SVG colors to match your exact brand palette
  • Export clean SVG — download production-ready, optimized files for Figma, web & apps
Open Grafeum Studio

How to Use the Tailwind Color Generator

1

Choose Base Color

Pick any hex code or use our random generator. Our tool uses this as the reference point.

2

Generate 50-950 Shades

Our algorithm instantly creates a perfectly balanced 11-step scale using the OKLCH color space.

3

Export to Tailwind

Copy the CSS variables or the full config object directly into your tailwind.config.js file.

Why Our Generator?

Scientific OKLCH Palettes

Unlike RGB generators, we use perceptually uniform OKLCH space to ensure every shade from 50 to 950 is visually consistent.

Tailwind Config Export

Get ready-to-paste code for your tailwind.config.js. We support both CSS variables and direct hex values.

WCAG Accessibility

We automatically calculate contrast ratios for every shade, ensuring your text is readable on any background color.

Deep Color Analysis

Visualize the luminance and chroma curves of your palette to understand exactly how your colors behave.

Frequently Asked Questions

OKLCH is a perceptually uniform color space that ensures all generated shades look natural and evenly distributed to the human eye. It fixes the "hue shift" problems common in HSL generators.

© 2026 Grafeum. Built for the modern web.