Open Source

Color palette images
from hex codes

Generate beautiful brand palette boards in SVG or PNG. Perfect for design systems, style guides, and documentation.

#6366F1
#EC4899
#F59E0B
#10B981

Quick Start

Install globally via npm and start generating palettes in seconds.

# Install globally

npm install -g palettd

# Generate a palette

palettd "#6366F1" "#EC4899" "#F59E0B" -o palette.svg

# Or use npx without installing

npx palettd "#FF6600" "#0B1320" --format png

Features

Multiple Formats

Supports hex, RGB, RGBA, HSL, and HSLA color inputs. Output to SVG or PNG.

Auto Color Naming

Automatically names colors using perceptual matching with ~200 named colors.

Accessibility First

Automatic text color selection ensures optimal contrast on every swatch.

Deterministic

Same inputs always produce identical outputs. Great for CI/CD pipelines.

Works Offline

No network dependencies. Generate palettes completely offline.

Cross Platform

Runs on Windows, macOS, and Linux. Requires Node.js 20+.

Use the API

Don't want to install anything? Use our hosted API to generate palette images on the fly. Images are cached for fast delivery.

View API Docs

MIT License. Open source on GitHub.

Built with Node.js