Color Palette Generator
Pick a base color and a scheme - tints & shades, monochromatic, complementary, analogous, triadic, tetradic or split-complementary - and get a palette of harmonious colors as clickable swatches.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Input and output
Type a single base colour and the tool returns a row of clickable swatches, with the underlying value as a JSON array of hex strings. The base can be a 3- or 6-digit hex code with or without the hash, an rgb() or rgba() function, or one of about thirty CSS colour names such as teal or crimson.
Choosing a scheme
Tints & shades keeps hue and saturation and sweeps lightness from 10% to 95%, the fastest way to build a scale for a design system. Monochromatic varies saturation and lightness around the base for a subtler set. Analogous rotates the hue ±30°, and complementary, triadic, tetradic and split-complementary jump to fixed offsets of 180°, 120°, 90°/270° and 150°/210°.
What the count option actually does
For tints & shades, monochromatic and analogous the count sets how many swatches you get, clamped to 3–12. The geometric schemes have a fixed size by definition — complementary 2, triadic 3, tetradic 4, split-complementary 3 — so changing count does nothing there.
Limits and edge cases
Conversion goes through HSL, so a swatch can land a shade or two from what a native colour picker would give. Alpha is parsed but not carried through: an rgba() value contributes only its red, green and blue channels, and every result is an opaque six-digit hex.
Computed in the browser
Colour maths runs locally in this tab — there is no colour service and no request. Your brand colours are not sent anywhere, which matters when the palette is for an unreleased product.
Questions
How many colors do the geometric schemes produce?
Complementary yields 2, triadic 3, tetradic 4, split-complementary 3 - the count option is ignored for those. Tints & shades, monochromatic and analogous fill/repeat to the chosen count.
Which input formats are accepted?
A 3- or 6-digit hex code with or without the leading hash, an rgb() or rgba() function, or a CSS colour name from a built-in list of about thirty (black, white, red, teal, crimson and so on).
Can I export the palette as CSS variables?
The output is a plain JSON array of hex strings, so you can copy it straight into a build script or paste it into another tool. Nothing is styled for you — the array is the raw data behind the swatches.
Related tools
See categoryColour Converter
Convert a colour between HEX, RGB, HSL, HSV, CMYK and OKLCH.
CSS Gradient Generator
Build linear, radial and conic CSS gradients with custom colour stops.
Color Blender
Mix two colors in RGB or HSL space with a 0-100% blend ratio.
Color Blindness Simulator
Simulate protanopia, deuteranopia, tritanopia and achromatopsia on your colors.