ColorLab
Installation
SKILL.md
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 <hex> |
Convert hex color to RGB values |
rgb-to-hex <r> <g> <b> |
Convert RGB values (0-255) to hex |
contrast <hex1> <hex2> |
Calculate WCAG 2.0 contrast ratio with AA/AAA pass/fail ratings |
palette <hex> [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 <hex> |
Find the closest named CSS color (from ~50 common colors) |