Color Palette Generator
Generate harmonious color palettes and CSS gradients from any base color, then copy HEX, CSS variables or gradient code.
Click a color to copy its HEX code.
Base color
About the Color Palette Generator
This free color palette generator turns a single base color into a harmonious set of colors using real color theory. Pick a color and choose a scheme — analogous, monochromatic, complementary, split-complementary, triadic or tetradic — and the palette appears instantly. Click any swatch to copy its HEX, or export the whole palette as a HEX list, CSS variables, RGB values or a code array. Everything runs entirely in your browser, so your colors are never uploaded.
It is also a CSS gradient generator: switch to the Gradient tab to build linear, radial and conic gradients with as many color stops as you like, adjust the angle, shape and position with a live preview, and copy clean, ready-to-paste CSS. Whether you are designing a brand, a website or a slide deck, you get coordinated colors and gradients in seconds — free, private and with no sign-up.
Frequently asked questions
Answers to the questions we hear most about this tool.
How do I create a color palette?
Pick a base color with the color picker or by typing a HEX code, an RGB value or even a CSS color name like "teal", then choose a color scheme such as analogous, complementary or monochromatic. The palette is built instantly from that base color using color theory. Click any swatch to copy its HEX code, or use the export box to copy the whole palette as a HEX list, CSS variables, RGB values or a code array. Press Shuffle for a fresh random base color whenever you want a new starting point.
What are complementary, analogous and triadic color schemes?
They are classic color harmonies based on positions around the color wheel. Complementary uses two colors directly opposite each other for high contrast. Analogous uses neighbouring colors for a calm, cohesive look. Triadic picks three colors evenly spaced around the wheel for a balanced, vibrant set, while split-complementary and tetradic are richer four- and three-color variations. Monochromatic keeps a single hue and varies its lightness for an elegant, subtle palette. This generator builds each one for you from your chosen base color.
How do I generate a CSS gradient?
Switch to the Gradient tab, choose a linear, radial or conic gradient, and add as many color stops as you like — each with its own color and position. Drag the angle slider for linear and conic gradients, or set the shape and position for radial ones, and the live preview updates as you go. When it looks right, copy the ready-to-use CSS (for example background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);) straight into your stylesheet.
Can I copy the palette as CSS variables or HEX codes?
Yes. The export box lets you switch between a plain HEX list, a :root block of CSS custom properties (--color-1, --color-2 …), rgb() values, or a JavaScript/JSON array of HEX strings. Copy the whole thing with one click or download it as a file. Individual swatches also copy their HEX code when you click them, so you can grab just the one color you need.
Is this color palette generator free and private?
Completely. There is no sign-up, no limits and no cost, and every palette and gradient is generated in your browser with JavaScript — nothing is ever sent to or stored on a server. That also means it keeps working offline once the page has loaded, and the colors you create stay entirely on your device.
Related tools
JSON Formatter
Developer
Format, beautify, validate, minify, repair and explore JSON in a tree view — with key sorting, escaping and pinpoint error locations.
Open toolColor Converter
Developer
Convert colors between HEX, RGB, HSL, HSV, CMYK and OKLCH with a live picker, alpha, shades and harmonies.
Open toolBase64 Encode / Decode
Developer
Encode and decode Base64 for text, files and data URIs — with URL-safe, padding and line-wrap options.
Open tool