Color Palette Generator
Build harmonious color schemes with contrast checks and CSS export.
How to use the Color Palette Generator
- 1Pick a base color and a harmony, or press Space for a fresh palette.
- 2Lock the colors you like and keep generating the rest.
- 3Check contrast, grab shades and export as CSS, Tailwind v4, SCSS or JSON.
About Color Palette Generator
The Color Palette Generator builds harmonious color schemes from a base color or at random. Choose a harmony, such as analogous, complementary, split-complementary, triadic, tetradic or monochromatic, or leave it on Auto, and generate a palette of 3 to 8 colors. Press Space to try new combinations; locked colors stay while the rest change, and you can reorder or edit any swatch.
Each color shows its hex, RGB, HSL and OKLCH values, its contrast with white and with black text and the WCAG level it reaches, plus a 50–950 shade scale in the style of Tailwind. A preview applies the palette to a sample layout. Export the scheme as CSS custom properties, a Tailwind v4 @theme block, SCSS variables or JSON, with values in HEX, RGB or OKLCH, your own name prefix and optional shades, or download the palette as a PNG image.
Designers use the Color Palette Generator to start a brand or interface color scheme, developers to set up design tokens for a project, and illustrators and presentation makers to find colors that work together. The palettes are built in the OKLCH color space, which is designed so that equal lightness values look about equally light across different hues.
Frequently asked questions
What is a complementary color scheme?
Two colors opposite each other on the color wheel, such as blue and orange, which gives strong contrast. A split-complementary scheme uses the two neighbors of the complement instead, for a softer effect.
What is the difference between analogous and triadic colors?
Analogous colors sit next to each other on the color wheel, around 30° apart, and feel calm and related. Triadic colors are spaced evenly at 120°, which gives a more varied, lively palette.
How many colors should a palette have?
Most brands and interfaces get by with one or two main colors, an accent and a few neutrals for text and backgrounds. The 60-30-10 rule of thumb gives about 60 % to a dominant color, 30 % to a secondary color and 10 % to an accent.
How do I use the palette in Tailwind CSS?
Choose the Tailwind v4 format and paste the @theme block into your main CSS file. Each color becomes a variable such as --color-palette-1, or --color-palette-1-500 with shades, which Tailwind turns into utilities like bg-palette-1 and text-palette-1-500.
More in Design & Color
Design linear, radial, conic and mesh gradients and copy the CSS.
Turn text, emoji or an image into a complete favicon set.
Tune layered box shadows with presets and a live preview.