← DevHelpers|Color Palette Generator

Color Palette Generator from HEX

Start with your HEX color and create six coordinated shades or complementary colors. Keep your seed, lock individual swatches, preview a small UI, and copy the whole palette as CSS variables.

Build a palette from your HEX color

Keep your brand color, explore related shades, and copy the palette into your stylesheet.

Three or six HEX digits, with or without #.

Neutral seeds keep a neutral palette.

Current palette seed: #2563eb · Example

The seed is always kept. Locked swatches stay fixed when you generate or load an example.

brand · seed
#2563eb
surface
#f5f5fe
accent
#cccbfa
soft
#949af4
strong
#2e479e
deep
#252a51

Preview on a card

Your next project

A palette that starts with your brand

Try your colors together before copying them into your CSS.

Primary button previewSecondary preview

Text contrast in this preview: card 16.47:1; primary button 5.17:1. These ratios apply only to these two text/background pairs. Check other combinations in your design.

Use the palette in CSS

:root {
  --color-brand: #2563eb;
  --color-surface: #f5f5fe;
  --color-accent: #cccbfa;
  --color-soft: #949af4;
  --color-strong: #2e479e;
  --color-deep: #252a51;
}

For example: background: var(--color-brand);

Build around your existing color

Enter a three- or six-digit HEX value. The first swatch retains that seed. Choose shades or complementary colors and lock any other swatches you want to keep while generating variations.

Take the palette into your stylesheet

Copy one HEX value or the complete CSS variables block. Download a .css file, then use the variables in your own components. The preview displays contrast for its specific text/background pairs; other combinations need their own check.

Frequently asked questions

How do I generate a palette from HEX?⌄

Enter a valid HEX seed, choose shades or complementary colors and generate a palette. Your seed is retained as the first swatch.

Can I copy all the colors together?⌄

Yes. Copy the palette as CSS custom properties or download its stylesheet. Individual HEX copying is also available.

Does the palette guarantee accessible contrast?⌄

No. The preview reports contrast only for the text/background pairs it displays. Check the actual combinations, font sizes and states used in your project.

Related tools & guides