mcpField
C
color-palette-extractor

color-palette-extractor

github.com/onewave-aiDesign & UI393613 installsUpdated 1w ago
Repository

About color-palette-extractor

color-palette-extractor is a design skill for extracting and generating accessible color palettes from images, websites, mockups, or color codes. It analyzes color harmony and accessibility, then prepares palette reports and exports in several formats.

Key features

  1. 01Extract dominant colors from images and websites
  2. 02Generate palettes with tints, shades, and tones
  3. 03Analyze color harmony schemes
  4. 04Check WCAG 2.1 contrast and color-vision variations
  5. 05Export palettes to CSS, Tailwind, SCSS, JSON, iOS, and Android

Use cases

  1. 01Find dominant colors in a logo or screenshot
  2. 02Build a palette from a website or color code
  3. 03Check text and background contrast
  4. 04Create a Tailwind configuration from colors

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/onewave-ai/claude-skills --skill color-palette-extractor

After installing, type/color-palette-extractorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
color-theory.md
export-formats.md
output-template.md

Details

From the project README

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"

Comments

Markdown supported