How to use Color Palette Generator
Generate a complete UI color palette from a single seed color — automatically creating 10 shades (50–900) similar to Tailwind CSS or Material Design. Export as CSS custom properties, Tailwind config, JSON, or SCSS variables. Use as the foundation for an entire design system or component library.
- Enter your brand color as HEX or pick it with the color picker.
- The tool generates 10 shades from near-white (50) to near-black (900) based on the seed.
- Preview the shades against white and dark backgrounds to validate contrast.
- Toggle the export format: CSS variables, Tailwind config, JSON, or SCSS.
- Copy or download the output and paste it into your design system.
Your data never leaves your device — 100% private processing.
Shade generation methodology
The generator uses the seed color as the 500 anchor and derives lighter shades (50–400) by increasing lightness and decreasing saturation in HSL, and darker shades (600–900) by decreasing lightness with a slight saturation adjustment to maintain vibrancy. The approach mirrors the methodology used by Tailwind CSS (via the Culori library) and ensures shades look natural together rather than mechanically equidistant. Each shade is validated to meet WCAG AA contrast requirements against white (for dark shades) or dark-800 (for light shades) in the output.
Integrating with Tailwind CSS
Paste the exported Tailwind config into your tailwind.config.js under theme.extend.colors: { brand: { 50: "#f0fdfa", 100: "#ccfbf1", ... } }. All shade utilities (bg-brand-500, text-brand-700, border-brand-300) become available immediately. For consistency with Tailwind's built-in palettes, use the 500 shade as primary, 600 as hover, 700 as active/focus-ring, and 100/200 as subtle backgrounds in light mode. Swap to 400/300/900 for dark mode using the dark: variant.
Worked examples
Shades from a seed
Inputs: seed #3498db
Result: 10 shades 50→900; the 500 step equals the seed #3498db
Tailwind config export
Inputs: seed #3498db · Tailwind format
Result: brand: { 50: …, 500: "#3498db", 900: … }
Glossary
- Shade
- A darker variation of a color, produced by adding black or decreasing lightness.
- Tint
- A lighter variation of a color, produced by adding white or increasing lightness.
- SCSS
- Syntactically Awesome Style Sheets — a CSS preprocessor supporting variables, nesting, and functions.
- Tailwind config
- The tailwind.config.js file where custom colors, spacing, and other design tokens extend or override defaults.
Related reading
Frequently Asked Questions
Why use Color Palette Generator?
- Generates all 10 Tailwind-style shades (50–900) automatically from a single seed color
- Validates each shade against WCAG AA contrast on white and dark backgrounds in the output
- Exports directly as Tailwind config, CSS custom properties, or SCSS variables
- Uses HSL-based lightness curves for natural-looking shades rather than mechanical RGB steps
Common use cases
- Bootstrapping a Tailwind color palette for a new SaaS product by entering the brand primary
- Generating a full grey scale from a slightly warm neutral to match a brand's warmth tone
- Exporting CSS custom properties to replace hardcoded hex values in a legacy stylesheet
- Checking that the 300 and 700 shades meet AA contrast before assigning hover and active states
- Sharing the Tailwind config export with a developer to avoid manually deriving shades in Figma
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Related Color & Design
Color Picker & Converter
Pick a color and convert HEX, RGB, HSL, HSB, and CMYK instantly. Generate tints, shades, and export-ready palette values.
CSS Gradient Generator
Create linear, radial, and conic CSS gradients with live preview controls. Copy production-ready gradient code instantly online.
Image Color Extractor
Extract dominant colors from any image. Upload a photo and instantly get the top colors as HEX and RGB values. Free online color palette extractor.
Tailwind CSS Color Palette
Browse the full Tailwind CSS default color palette with every hex code and shade from 50 to 950. Filter by family and copy class names or hex values in one click.
Color Name Generator
Find the closest CSS color name from any HEX code, compare RGB distance, and explore similar named colors for design systems and UI consistency.
Color Contrast Checker
Check color contrast ratio for WCAG AA and AAA accessibility compliance. See if your text and background colors meet accessibility standards.
Explore all Color & Design.