Skip to content
clkr

Loading tools…

    Color Palette Generator

    Generate color palettes from harmony rules, a base color or an image with this free online color palette generator. Lock colors and export HEX, CSS or Tailwind.

    Loading…

    What next?

    Found it useful? Share Color Palette Generator

    Free, no sign-up, works in the browser — send it to a friend or add it to your site.

    Part of these toolkits

    How to use Color Palette Generator

    1. 1Press Generate palette (or the Space bar) for a fresh harmonious palette — lock the colors you want to keep
    2. 2Or pick a base color and a harmony rule, or extract the main colors from an image
    3. 3Tap a swatch to fine-tune it, click a code to copy it, and export as HEX, CSS variables, Tailwind, JSON or PNG

    Frequently asked questions

    What are color harmonies?▾

    Rules based on positions on the color wheel: analogous colors sit next to each other, complementary colors are opposite (180°), triadic colors are 120° apart, split complementary uses the two neighbors of the complement, and monochromatic varies the lightness of one hue.

    How does the image palette work?▾

    The image is scaled down in your browser and its pixels are grouped with k-means clustering; the five biggest clusters become the palette, ordered from dark to light. The image is never uploaded.

    How many colors should a palette have?▾

    Most brand and UI palettes use 3–5 colors: one or two main colors, an accent, and neutral light and dark shades. A 60-30-10 split (dominant, secondary, accent) is a popular guideline.

    Why do some swatches have white text and others black?▾

    Each code is drawn in black or white — whichever has the higher WCAG contrast ratio with that color — so it stays readable.

    Embed Color Palette Generator on your website▾

    Paste this snippet into your page. The embedded tool runs in your visitor's browser and shows a small “Powered by clkr.work” link.