Colorlab
/install colorlab
ColorLab — Color Tool
Convert colors, generate palettes, check WCAG contrast ratios, and find closest CSS color names. Uses printf and awk for calculations, with ANSI 24-bit color swatches in terminal output.
Commands
| Command | Description |
|---|---|
hex-to-rgb \x3Chex> |
Convert hex color to RGB values |
rgb-to-hex \x3Cr> \x3Cg> \x3Cb> |
Convert RGB values (0-255) to hex |
contrast \x3Chex1> \x3Chex2> |
Calculate WCAG 2.0 contrast ratio with AA/AAA pass/fail ratings |
palette \x3Chex> [count] |
Generate lighter and darker variants of a color (default: 5 each direction) |
random [count] |
Generate random colors with hex and RGB values (default: 1) |
name \x3Chex> |
Find the closest named CSS color (from ~50 common colors) |
Examples
# Convert hex to RGB
colorlab hex-to-rgb "#FF5733" # → rgb(255, 87, 51)
# Convert RGB to hex
colorlab rgb-to-hex 255 87 51 # → #FF5733
# Check contrast for accessibility
colorlab contrast "#FFFFFF" "#000000"
# → 21.00:1, WCAG AA/AAA all pass
# Generate a palette
colorlab palette "#3498db" 3
# → Shows 3 darker + base + 3 lighter variants with color swatches
# Random colors
colorlab random 5
# Find closest CSS color name
colorlab name "#e74c3c" # → Crimson
Notes
- Hex colors accept
#prefix (optional) and 3-digit shorthand (#F00→#FF0000) - WCAG contrast checks report AA/AAA compliance for normal and large text
- Palette output includes ANSI 24-bit color swatches (requires a modern terminal)
- Color naming uses Euclidean distance in RGB space against ~50 common CSS color names
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install colorlab - After installation, invoke the skill by name or use
/colorlab - Provide required inputs per the skill's parameter spec and get structured output
What is Colorlab?
Convert colors and generate palettes with WCAG contrast checks. Use when building palettes, converting hex/RGB, checking accessibility. It is an AI Agent Skill for Claude Code / OpenClaw, with 325 downloads so far.
How do I install Colorlab?
Run "/install colorlab" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Colorlab free?
Yes, Colorlab is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Colorlab support?
Colorlab is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Colorlab?
It is built and maintained by bytesagain3 (@bytesagain3); the current version is v3.0.0.