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.
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.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
CSS Specificity Calculator
Calculate CSS selector specificity as (inline, ID, class, element) notation. Compare two selectors to see which wins the cascade. Supports :not(), :is(), :has(), :where(), attribute selectors, and pseudo-elements.
Open free tool →
Color Blindness Simulator
Simulate how colors look with different types of color blindness: protanopia, deuteranopia, tritanopia, and achromatopsia. Free accessibility testing tool.
Open free tool →
CSS Clip-Path Generator
Generate CSS clip-path values visually. Choose from 16 polygon presets (triangle, star, arrow, hexagon), circle, ellipse, and inset shapes. Live preview, one-click copy. Free, no signup.
Open free tool →
More Free Tools
Related Articles
Color Picker Tools for Developers: HEX, RGB, HSL, and CSS Custom Properties in 2026
Use color picker tools effectively in web development. HEX/RGB/HSL conversion, CSS theming with custom properties, WCAG contrast checking, and palette generation.
Color Picker Hex RGB — Convert and Pick Colors for Web Development
Color picker hex RGB — convert between HEX, RGB, HSL, and CSS color formats instantly. Learn how color systems work in CSS, JavaScript, and design tools with practical examples.
CSS Gradient Generator Online: Create Linear, Radial & Conic Gradients Free
Generate beautiful CSS gradients online for free. Build linear, radial, and conic gradients visually, copy the CSS code, and use it instantly in your project — no install needed.
CSS Gradient Guide 2026: Linear, Radial, Conic, and Advanced Patterns
Master CSS linear, radial, and conic gradients with copy-paste code. Includes performance tips, animation techniques, dark mode handling, gradient mesh alternatives, and production UI design recipes.
CSS Grid vs Flexbox: Complete Guide with Interactive Examples 2025
CSS Grid vs Flexbox with real code examples for every common layout pattern. Holy Grail layout, card grid, navigation bar, sidebar — see exactly when to use each one.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →