Color Palette Generator

Build harmonious color palettes, lock colors, sample a local image and export design tokens.

Choose 3 to 6 colors. Locked colors fill the first slots in order. A local image with fewer distinct sampled colors can produce a smaller palette. Export the displayed colors as CSS tokens.

Drop files here, or use the file chooser. Processing starts only when you choose the action below.

About this tool

Build a 3-color palette for a primary, secondary and accent color, or choose 6 colors for a larger set. The default is 5. Start from a base color and harmony or sample a local image. Lock brand colors in the first slots and download one CSS custom property for each displayed swatch.

Use this tool step by step

  1. Generate a starting palette or select an image to sample locally. Lock colors you want to keep before generating another combination.
  2. Preview the palette in your intended interface and export the supported design tokens. A harmonious palette does not automatically satisfy text contrast requirements; check the foreground and background pairs separately.

How it works

Harmony modes vary HSL hue angles and lightness. Image mode samples an 80×80 preview, quantizes RGB channels into bins and selects the most frequent opaque colors. Locked colors override sampled or generated slots.

Example workflow

A base #087a6b can produce an analogous palette around neighboring hue angles. Lock #ffffff and #111111 to retain them in the first two slots while the remaining colors are generated.

Assumptions and limitations

Image extraction accepts a PNG, JPEG or WebP up to 2 MB and 16 MP. Sampling is approximate, not a professional perceptual clustering analysis. Transparent pixels below half opacity are ignored.

Palette harmony does not ensure accessible text. Run intended foreground/background pairs through the contrast checker, and distinguish decorative colors from semantic status colors.

Sources and editorial responsibility

Maintained by Renvoro Pty Ltd. Sources inform the methods and assumptions shown here; outputs have the limitations described on this page.

Common questions

Can I create a palette from a photo?

Select a supported PNG, JPEG or WebP within the size limits. The browser samples visible pixels and groups similar colors to suggest a palette.

How are transparent areas treated?

Pixels below half opacity are skipped in image extraction. A color visible over a background in a design may differ from the palette sampled from its source image.

Will the palette meet an accessibility contrast target?

Check each intended text and background combination separately. Image sampling groups colors and does not test how they will be paired.

Guide updated 2026-11-17. Calculation method and source dates remain separate.

Method reviewed 2026-10-13. Calculation standards · Report an issue