Skip to main content

Color Palette Extractor

Paste any hex colors to build a visual palette. Explore shades, complementary and triadic harmonies, and export CSS custom properties — all in your browser.

✓ Parses any hex list ✓ Shades, complementary & triadic ✓ Export CSS custom properties

Frequently Asked Questions

How do I extract a color palette from hex codes?▼

Paste any hex codes into the input field — comma-separated, space-separated, or raw text. The tool parses all #rrggbb and #rgb values, converts each to RGB and HSL, identifies approximate color names, and builds your palette. Click any swatch to copy its hex code instantly.

What is HSL and how is it different from RGB?▼

HSL (Hue, Saturation, Lightness) is a perceptual color model. Hue (0–360°) is the color family (red=0, green=120, blue=240). Saturation (0–100%) controls color intensity — 0% is gray, 100% is vivid. Lightness (0–100%) controls brightness — 0% is black, 50% is pure color, 100% is white. HSL is more intuitive for designers because you can adjust brightness and vibrancy independently.

What are complementary and triadic colors?▼

Complementary colors are opposite on the color wheel (hue +180°) — high contrast, vibrant pairings ideal for CTAs and emphasis. Triadic colors are evenly spaced at 120° intervals — a balanced, vibrant trio used for playful, energetic designs. Analogous colors (adjacent, 30° apart) create harmonious, calm palettes common in nature-inspired designs.

How are color shades generated?▼

Shades are generated by fixing the hue and saturation from your base color and cycling through lightness values (roughly 10%, 20%, 35%, 50%, 65%, 75%, 85%, 92%). This mirrors how design systems like Tailwind CSS create their color scales. The result gives you a full range from near-black to near-white using your brand's hue.

What is the CSS custom properties output?▼

The CSS output generates a :root block with custom properties (CSS variables) for each color: --color-1, --color-2, etc. Copy it into your stylesheet and reference colors anywhere with var(--color-1). This makes it easy to build a consistent design token system from any palette.

How accurate are the color names?▼

Color names are approximations based on HSL ranges — useful as labels rather than exact matches. Black/white are detected by lightness, grays by low saturation, and named hue ranges identify reds, oranges, yellows, greens, cyans, blues, purples, and pinks. For precise color naming (e.g., 'Cobalt' vs 'Cerulean'), you would need a full color dictionary lookup.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →