ColorLab
Your color toolkit in the terminal. Convert, generate palettes, and check accessibility.
Why ColorLab?
- Format conversion: Hex ↔ RGB instant conversion
- Palette generation: Create harmonious palettes from any color
- Accessibility: WCAG contrast ratio checking
- Named colors: Quick reference for CSS color names
- No GUI needed: Fast color work from command line
Commands
hex2rgb <#hexcode>— Convert hex to RGBrgb2hex <r> <g> <b>— Convert RGB to hexpalette [hex|random]— Generate a 6-color palettecontrast <fg_hex> <bg_hex>— Check WCAG contrast rationamed— Show named CSS colorsinfo— Version infohelp— Show commands
Usage Examples
colorlab hex2rgb #ff5733
colorlab rgb2hex 255 87 51
colorlab palette #3498db
colorlab palette random
colorlab contrast #ffffff #000000
colorlab named
Contrast Rating
- ✅ AAA (7:1+) — Excellent readability
- ✅ AA (4.5:1+) — Good for normal text
- ⚠️ AA Large (3:1+) — Only for large text
- ❌ Fail — Does not meet WCAG guidelines
💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com