Color Palette Generator

Inputs

Any CSS color: hex, rgb(), hsl(), oklch() or a name.

Results

    Click a color to copy its hex code.

    CSS variables

    
    

    Colors that go together often sit in simple patterns on the color wheel: opposite each other, side by side, or evenly spaced. This generator applies those patterns to your color. It turns the hue in OKLCH rather than HSL, so the new colors keep the same perceived lightness and none of them looks washed out or too dark next to the others.

    How to use it

    1. Enter or pick your starting color.
    2. Choose a scheme.
    3. Click a color to copy it, or copy the whole palette as CSS variables.

    Example: teal #2a9d8f with Triadic gives three colors a third of the wheel apart, starting with #2a9d8f itself. Light to dark gives nine shades of the same teal for backgrounds, borders and text.

    Questions and answers

    Why don't the colors match other color-wheel tools?

    Most tools turn the hue in HSL, where yellow looks much lighter than blue at the same settings. Here the hue turns in OKLCH, which follows how bright colors look, so the results differ a little but sit better together.

    Why do some colors look less vivid than the one I started with?

    Screens can’t show every hue at every strength. When a turned color would fall outside what screens show, its colorfulness is lowered until it fits, keeping its lightness and hue.

    How do I use the palette in CSS?

    Copy the CSS variables into your stylesheet and use them with var(–color-1) and so on. Rename them to say what they’re for, like –accent or –background.

    Why does a gray, white or black give only grays?

    Color-wheel schemes turn the hue, and grays have none: the opposite of gray is the same gray. So for grays the generator spreads the colors over lightness instead. Pick a color with even a little hue to get a real color-wheel palette.

    Link with pre-filled values

    Add # and these parameters to the end of this page's address to open the tool with values already filled in.

    ParameterWhat it sets
    cStarting color, any CSS notation (write # as %23 in a link).
    schemecomplementary, analogous, triadic, split, tetradic or shades.

    Example: https://toolabelle.com/color-palette-generator/#c=%23e76f51&scheme=analogous

    Related tools