← 返回
未分类 中文

Color Toolkit

Convert, analyze, and generate colors from the CLI. Supports HEX, RGB, HSL, HSV, CMYK conversion, WCAG contrast ratio checking (AA/AAA compliance), palette g...
在命令行中转换、分析和生成颜色。支持HEX、RGB、HSL、HSV、CMYK互转,WCAG对比度检查(AA/AAA),调色板生成
johnnywang2001 johnnywang2001 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 388
下载
💾 1
安装
1
版本
#latest

概述

Color Toolkit

Convert colors, check WCAG contrast, generate palettes, and manipulate colors. Pure Python, no dependencies.

Quick Start

# Convert between formats (accepts #hex, rgb(), hsl(), CSS names, or r,g,b)
python3 scripts/color_toolkit.py convert '#ff6347'
python3 scripts/color_toolkit.py convert tomato
python3 scripts/color_toolkit.py convert 'rgb(52, 152, 219)'

# WCAG contrast check
python3 scripts/color_toolkit.py contrast '#333333' '#ffffff'

# Generate palettes
python3 scripts/color_toolkit.py palette '#3498db' -s triadic
python3 scripts/color_toolkit.py palette '#e74c3c' -s monochromatic -n 7

# Modify colors
python3 scripts/color_toolkit.py modify '#3498db' --op lighten --amount 20
python3 scripts/color_toolkit.py modify coral --op darken --amount 15

# Mix colors
python3 scripts/color_toolkit.py mix '#ff0000' '#0000ff' --weight 0.5

# Random colors
python3 scripts/color_toolkit.py random -n 5

# Search CSS named colors
python3 scripts/color_toolkit.py lookup green

Commands

CommandDescription
----------------------
convertConvert any color to HEX, RGB, HSL, HSV, and CMYK.
contrastWCAG contrast ratio between foreground and background. Reports AA/AAA compliance.
paletteGenerate palettes: complementary, analogous, triadic, split-complementary, monochromatic.
modifyAdjust color: lighten, darken, saturate, desaturate. --amount 0-100.
mixBlend two colors. --weight controls the ratio (0.0 = all color1, 1.0 = all color2).
randomGenerate random colors. -n sets count.
lookupSearch CSS named colors by partial name.

All commands support --json for structured output.

Accepted Color Formats

#hex (3 or 6 digit), rgb(r, g, b), hsl(h, s%, l%), r,g,b, or any CSS color name (e.g., tomato, steelblue, coral).

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,973
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,832
business-ops

Agent Invoice Generator

johnnywang2001
根据自然语言或结构化数据生成专业的PDF发票,适用于用户请求创建发票、向客户计费或生成收据等场景。
★ 0 📥 727