cn-color-tool - 颜色转换工具 OpenClaw Skill

提供纯 Python 实现的颜色格式转换工具,支持 HEX、RGB、HSL 互转及终端颜色预览功能。

v1.0.0 Recently Updated Updated Today

Installation

clawhub install cn-color-tool

Requires npm i -g clawhub

65

Downloads

0

Stars

0

current installs

0 all-time

1

Versions

EU EU-Hosted Inference API

Power your OpenClaw skills with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

cn-color-tool - 颜色转换工具

纯 Python 标准库实现的颜色格式转换工具。

功能

  • HEX → RGB:十六进制颜色码转 RGB 元组
  • RGB → HEX:RGB 转十六进制颜色码
  • RGB → HSL:RGB 转 HSL
  • HSL → RGB:HSL 转 RGB
  • 颜色预览:输出适合终端显示的颜色信息

使用方式

# HEX 转 RGB
python3 cn_color_tool.py hex2rgb "#FF5733"

# RGB 转 HEX
python3 cn_color_tool.py rgb2hex 255 87 51

# RGB 转 HSL
python3 cn_color_tool.py rgb2hsl 255 87 51

# HSL 转 RGB
python3 cn_color_tool.py hsl2rgb 11 100 60

# 完整转换(显示所有格式)
python3 cn_color_tool.py convert "#FF5733"

# HEX 转 HSL(一步到位)
python3 cn_color_tool.py hex2hsl "#FF5733"

技术说明

  • 纯 Python 标准库(colorsysargparse
  • 无外部依赖
  • HSL 中 H 范围 0-360,S/L 范围 0-100

Statistics

Downloads 65
Stars 0
Current installs 0
All-time installs 0
Versions 1
Comments 0
Created Apr 27, 2026
Updated Apr 30, 2026

Latest Changes

v1.0.0 · Apr 27, 2026

cn-color-tool 1.0.0 - 首次发布,支持多种常用颜色格式转换 - 支持 HEX、RGB、HSL 互相转换 - 命令行操作简单直观,支持一步转多种格式 - 特别适配终端颜色信息预览 - 纯 Python 标准库实现,无外部依赖

Quick Install

clawhub install cn-color-tool
EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Get the App:

Customer Support