Color Palette Extractor

作者 onewave-aifc5b7851a6c7无许可证325 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6天前更新

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.

仅含说明Design & Creative
AI 生成的概览

从图像、网站或设计中提取主色,生成可访问的配色方案、和谐配色与多种导出格式。

功能
分析图像、网站、截图、设计稿或起始色值,识别主色并构建包含 5-10 种颜色的主调色板,涵盖主色、辅助色、点缀色、背景色与文字色。它会生成扩展的浅色、深色、中间色及 50-950 数值色阶,并输出互补、类似、三角、分裂互补、四角与单色等和谐配色方案。它还会计算 WCAG 2.1 对比度并进行色觉缺陷模拟,在配对不通过时给出可访问的替代方案,最终按报告模板整理,并导出 HEX、RGB、HSL、CSS 变量、Tailwind、SCSS、JSON、iOS 与 Android 等格式。
适用场景
当用户需要从图像、标志、截图、网站或设计稿中提取配色,或希望把品牌色整理为设计系统调色板时使用。也适用于根据现有颜色生成 Tailwind 配置或 CSS 变量的请求。
运行要求
无需脚本,仅包含说明与参考文档。从图像提取需读取像素数据,从网站提取需抓取并解析其 CSS,因此这些来源需要图像访问权限与网络访问。

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/claude-skills位于color-palette-extractor提交fc5b785

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架