CSS Gradient Palette Generator

Start from one base color and a color-harmony rule to generate a palette of CSS variables plus a gradient built from those colors.

Last updated: · Runs 100% in your browser

// controls
5
135deg
Live preview
Generated CSS
:root {
  --palette-1: #6fff00;
  --palette-2: #04ff00;
  --palette-3: #00ff66;
  --palette-4: #00ffd0;
  --palette-5: #00c3ff;
}

.palette-gradient {
  background: linear-gradient(135deg, #6fff00, #04ff00, #00ff66, #00ffd0, #00c3ff);
}

// Example output

:root {
  --palette-1: #6fff00;
  --palette-2: #04ff00;
  --palette-3: #00ff66;
  --palette-4: #00ffd0;
  --palette-5: #00c3ff;
}

.palette-gradient {
  background: linear-gradient(135deg, #6fff00, #04ff00, #00ff66, #00ffd0, #00c3ff);
}

// Features

  • ▸Analogous, complementary, triadic, monochrome
  • ▸3–6 colors
  • ▸CSS variables output
  • ▸Matching gradient
  • ▸Randomize base color

// How to use

  1. 01Adjust the controls on the left or pick a preset to start the CSS Gradient Palette Generator.
  2. 02Watch the live preview update instantly as you change each setting.
  3. 03Fine-tune the generated CSS by hand in the code panel if you like.
  4. 04Click Copy CSS or Download CSS, or Share to send a link to your design.

// FAQ

Your data never leaves your browser. This tool runs 100% locally — no upload, no logging, no analytics on your inputs.

// Related tools