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 從公開儲存庫中收錄這些內容。

檢舉或申請下架