Press the spacebar to generate while your pointer is over the tool

    Pick a base colour, choose a harmony rule, and press Generate or the spacebar for new combinations. Lock the swatches you want to keep, then copy individual codes or export the whole palette as CSS variables, JSON or a PNG.

    Making a Scheme with the Color Palette Generator

    The base colour seeds every rule except Random. Each press of Generate shifts hue, saturation and lightness slightly, so you see variations rather than the same five colours. Click a swatch’s code to copy it, use Lock to freeze it, and switch between HEX, RGB and HSL with the format menu.

    Color Palette Harmony Rules, Explained

    RuleHow it picks coloursFeel
    AnalogousNeighbours within 40° on the wheelCalm, cohesive
    ComplementaryThe opposite hue, 180° awayHigh contrast, energetic
    TriadicThree hues 120° apartLively but balanced
    TetradicFour hues 90° apartRich; needs one dominant colour
    Split complementaryBase plus the two hues beside its oppositeContrast with less tension
    MonochromaticOne hue at five lightness levelsClean, minimal

    Most interfaces work best with one or two dominant colours and the rest as accents. The 60-30-10 split in the FAQs below is a reliable starting point.

    Checking Color Palette Contrast Before You Use It

    Each swatch shows its contrast ratio against white and black text. WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text, so a ratio below 4.5 rules that pairing out for body copy. The code on each swatch automatically uses whichever of white or near-black reads better.

    Pale tints make good backgrounds and mid-tones make good buttons. To test a pairing in real CSS, preview the text colour code before it goes into your stylesheet. Check hover and focus states too.

    Color Palette Generator Exports for CSS

    The export panel lists your palette as CSS custom properties, ready to paste into :root, so changing one value later updates every element that uses it. JSON suits design tokens and scripts, and the PNG gives you a quick image for mood boards or client approval.

    Two neighbouring palette colours also make a natural gradient. Drop them into a CSS gradient builder to tune the angle and colour stops. Analogous pairs blend most smoothly.

    Which Codes Does the Color Palette Generator Give?

    HEX is the most common format in design tools and CSS. RGB is handy when you need transparency through rgba(). HSL describes hue, saturation and lightness separately, which makes it the easiest format for creating lighter or darker versions of a colour by hand.

    FAQs

    How do I create a color palette?

    Pick a base colour, choose a harmony rule such as analogous or triadic, and press Generate or the spacebar. Lock the swatches you like and keep regenerating the rest until the set works.

    What is the 60-30-10 color rule?

    A layout guideline: 60% of a design uses a dominant neutral, 30% a secondary colour and 10% an accent. It keeps palettes balanced, with the boldest colour reserved for buttons and highlights.

    What colors go well together?

    Colours that follow a harmony rule usually work. Neighbours on the colour wheel feel calm, opposites create contrast, and evenly spaced trios feel lively but balanced.

    What contrast ratio does WCAG require?

    WCAG 2 level AA requires 4.5:1 for normal text and 3:1 for large text, meaning 24px, or about 18.66px bold. Level AAA raises those to 7:1 and 4.5:1.

    Why do designers on Reddit lock one colour before generating palettes?

    Starting from a fixed brand or hero colour keeps results relevant. Locking it means every regenerated combination still works with that colour, instead of producing random sets you’d have to rebuild later.

    Paul Mills is a web developer and writer at webcode.tools. He covers the site's generators and online utilities, with a focus on making everyday HTML, CSS, and JavaScript tasks quicker for people who would rather build something than look up syntax for the tenth time.