Skip to main content
skill CX Codex

color-palette-extractor — Claude Code skill: palettes from images

Pulls dominant colors out of an image, screenshot or website and turns them into a palette with contrast checks. Handy when you need a theme built from a logo or someone else's mockup.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add OneWave-AI/claude-skills --skill color-palette-extractor -a claude-code
Open on GitHub

What color-palette-extractor does

The skill takes an image file (PNG, JPG, SVG), a website URL, a screenshot, a design mockup, or an existing color code. From an image it reads pixel data, groups similar shades and sorts them by how much space they take up. From a website it fetches the CSS and picks out brand, accent, text and background colors. Clustering runs through K-means and returns 5-10 dominant colors; near-white and near-black get dropped unless they cover a meaningful area.

Those colors become the primary palette: the most dominant one, two or three supporting colors, one or two accents, a background and a text color. An extended palette adds tints, shades and a 50-950 numeric scale. Harmony analysis covers complementary, analogous, triadic, split-complementary, tetradic and monochromatic schemes.

Accessibility is part of the run, not an afterthought. Every text/background pairing gets a WCAG 2.1 contrast ratio plus a simulation for protanopia, deuteranopia and tritanopia, and failing pairs come back with a suggested alternative. Output goes to HEX, RGB, HSL, Tailwind, CSS variables, SCSS, JSON and iOS/Android snippets — the templates live in references/export-formats.md, the report structure in references/output-template.md. Colors scraped from a site only cover what the CSS actually exposes, so shades baked into images won't show up.

What it helps with

  • pull a palette from a screenshot of someone else's UI
  • build a theme around a client's logo
  • check whether text passes WCAG 2.1 contrast
  • generate a Tailwind config from a set of colors
  • build a 50-950 shade scale from one hex code

Example prompts for the agent

  • Extract the color palette from this screenshot and list the dominant colors
  • Generate a color scheme from this image and check text contrast
  • Create a Tailwind config from these colors

How to install color-palette-extractor

1Skills CLI (Vercel)

npx skills add OneWave-AI/claude-skills --skill color-palette-extractor -a claude-code

2Manually: put the files in place

~/.claude/skills/color-palette-extractor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/color-palette-extractor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about color-palette-extractor

How do I install color-palette-extractor in Claude?

Run npx skills add OneWave-AI/claude-skills --skill color-palette-extractor -a claude-code. The skill then sits at ~/.claude/skills/color-palette-extractor/SKILL.md.

What does color-palette-extractor do?

It extracts dominant colors from an image, website or mockup, builds primary and extended palettes, computes harmony schemes and checks WCAG 2.1 contrast. Exports come out as HEX, RGB, HSL, Tailwind and CSS variables.

Which export formats are supported?

HEX, RGB, HSL, Tailwind, CSS variables, SCSS, JSON, plus iOS and Android snippets. The templates are described in references/export-formats.md.

Source text

SKILL.md · MIT
---
name: color-palette-extractor
description: Extract color palettes from images, websites, or designs. Identifies dominant colors, generates complementary schemes, and exports in multiple formats (HEX, RGB, HSL, Tailwind, CSS variables). Use when users need color schemes from images, brand colors, or design system palettes.
---

# Color Palette Extractor

Extract and generate accessible color palettes from images, websites, and designs.

## Contents

- `references/output-template.md` — full report structure for presenting a palette
- `references/export-formats.md` — CSS, Tailwind, SCSS, JSON, iOS, Android snippets
- `references/color-theory.md` — harmony schemes, accessibility, extraction best practices

## Workflow

1. Identify the source: image file (PNG, JPG, SVG), website URL, screenshot, design mockup, or an existing color code to build from.

2. Extract colors.
   - From an image: analyze pixel data, identify dominant colors, group similar shades, calculate frequency, and sort by prominence.
   - From a website: fetch and parse the CSS, extract color values, and identify brand, accent, text, and background colors.
   - Cluster with K-means; extract 5-10 dominant colors. Ignore near-white and near-black unless significant.

3. Build the primary palette (5-10 colors): most dominant color, 2-3 supporting colors, 1-2 accents, a background, and a text color. Generate an extended palette with tints, shades, tones, and 50-950 numeric scales. See `references/color-theory.md`.

4. Run color harmony analysis to produce complementary, analogous, triadic, split-complementary, tetradic, and monochromatic schemes. See `references/color-theory.md`.

5. Check accessibility: compute WCAG 2.1 contrast ratios for each text/background pairing and test against protanopia, deuteranopia, and tritanopia. Recommend accessible alternatives where a pairing fails. See `references/color-theory.md`.

6. Format the report following `references/output-template.md`, and export to the requested formats using `references/export-formats.md`.

## Output Requirements

Deliver palettes that have clear dominant colors, sufficient variations, semantic naming, harmony schemes, contrast ratios that pass accessibility checks, usage guidelines, and exports in multiple formats. Produce professional, accessible palettes ready for immediate use in design systems.

## Example Triggers

- "Extract colors from this screenshot"
- "Get color palette from this website"
- "Generate a color scheme from this image"
- "Create Tailwind config from these colors"
- "Find dominant colors in this logo"
- "Build a palette from this hex code"

© OneWave-AI · MIT · OneWave-AI/claude-skills

Similar skills

Everything for Design →

From the same set58

css-animation-creator A coding-agent skill for writing CSS animations, transitions, micro-interactions and scroll effects. Useful when you need motion in a UI without hand-tuning every duration. CX Codex +1 805installs job-application-optimizer This skill rewrites your resume for a specific posting, drafts a cover letter and builds interview questions. Useful when an application has to go out today. CX Codex +1 698installs knowledge-base-builder Turns support tickets into knowledge base articles: FAQ sections, step-by-step tutorials with screenshot placement, video scripts and deflection metrics. CX Codex +1 667installs workout-program-designer Designs custom workout programs for strength, cardio, and flexibility goals. It schedules progressive overload, deload weeks, and adapts exercises for home or gym setups. CX Codex +1 664installs stock-photo-finder A skill for searching multiple free stock photo sites at once with license, orientation, and palette filters. Useful when sourcing images for UI layouts and articles. CX Codex +1 582installs itinerary-optimizer Builds a day-by-day route for trips with several stops: transfers, reservation windows and slack for whatever comes up. Useful when the plan is packed too tight. CX Codex +1 580installs font-pairing-suggester Suggests font combinations for a given use case and shows heading hierarchy with examples. Handy when you need a free stand-in for a paid typeface. CX Codex +1 578installs presentation-design-enhancer Turns text-heavy slides into visual storytelling, suggesting layout changes, icons and ways to show data. CX Codex +1 573installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor