Color Palette Generator for React Developers

Updated May 4, 2026 · CSS variables, Tailwind config, design tokens
The pitch. Generate a complete palette and get it as CSS variables, Tailwind config, or a design tokens JSON file in one click. Drop it straight into your React project — no manual hex copying, no Figma round trip.

What you get

The React design system pattern that scales

Six tokens covers a launch-week SaaS. Add semantic tokens only when you actually render a toast.

// tokens.css
:root {
  --bg: #0a0a0f;
  --bg-card: #15151f;
  --border: #2a2a3a;
  --text: #f5f5fa;
  --text-dim: #a0a0b8;
  --accent: #a855f7;
}

// Then in any React component:
<button style={{background:'var(--accent)',color:'var(--text)'}}>
  Click me
</button>

The Tailwind v4 pattern

// tailwind.config.js (v3) or @theme block (v4)
export default {
  theme: {
    extend: {
      colors: {
        bg: '#0a0a0f',
        card: '#15151f',
        accent: { DEFAULT: '#a855f7', muted: '#c084fc' },
      }
    }
  }
}

Dark mode in 30 seconds

Use oklch() instead of hex so dark mode just shifts lightness without re-picking the hue:

:root {
  --accent: oklch(60% 0.2 290);
}
@media (prefers-color-scheme: dark) {
  :root { --accent: oklch(70% 0.18 290); }
}

Why this beats picking colors in Figma first

Generate a developer-ready palette now

Pick an accent. Get CSS variables, Tailwind config, JSON tokens, SCSS variables — all exports, one click.

Open the Color Palette Generator →