colorcli
Convert between color formats - hex, RGB, HSL, and CSS named colors.
pip install colorcli
Usage
# Convert any color format
colors convert "#ff5733"
colors convert "rgb(255, 87, 51)"
colors convert coral
# Specific format conversions
colors hex "#ff5733"
colors rgb 255 87 51
colors hsl 11 100 60
colors name coral
# Generate palettes
colors palette "#ff5733" 5 --type analogous
colors palette coral 3 --type triadic
colors palette "#336699" --type complementary
# Utility commands
colors blend "#ff0000" "#0000ff"
colors contrast "#ff5733"
colors names # List all CSS color names
Commands
| Command | Description |
|---|---|
convert COLOR |
Convert any color to all formats |
hex HEX |
Convert hex to RGB/HSL |
rgb R G B |
Convert RGB to hex/HSL |
hsl H S L |
Convert HSL to hex/RGB |
name NAME |
Look up CSS named color |
names |
List all 140 CSS named colors |
palette COLOR [COUNT] |
Generate color palette |
blend COLOR1 COLOR2 |
Mix two colors |
contrast COLOR |
Suggest text color for background |
random-gradient COLOR |
Generate CSS gradient |
Palette Types
complementary- Opposite on color wheelanalogous- Adjacent colors (default)triadic- Three colors 120° aparttetradic- Four colors 90° apartsplit- Split-complementaryshades- Darker versionstints- Lighter versions
JSON Output
All commands support --json for machine-readable output:
colors convert "#ff5733" --json
{
"hex": "#ff5733",
"rgb": {"r": 255, "g": 87, "b": 51},
"rgb_string": "rgb(255, 87, 51)",
"hsl": {"h": 11, "s": 100, "l": 60},
"hsl_string": "hsl(11, 100%, 60%)",
"name": null
}
For AI Agents
See SKILL.md for agent-optimized documentation.
License
MIT
Release files for colorconv-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colorconv_cli-0.1.0.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorconv_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / colorconv_cli-0.1.0.tar.gz
| Download URL | colorconv_cli-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37739d3638c2bc52e749bb1c19ba4566609a42f4baad7901c97e2250428fb31d
|
|
BLAKE2b-256 checksum How to use checksums |
83c4ab0fb82e7e715262a201c3f78f259e565967b4b04f558c3bc0948bf0ec53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / colorconv_cli-0.1.0-py3-none-any.whl
| Download URL | colorconv_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efda3d0970db8c99d5c19b04ac2ff77199cfd2550762287b5d1fdb6deb706bdf
|
|
BLAKE2b-256 checksum How to use checksums |
4e2ee62812fac389e8921c58684aa3dfa25c7bfd9a8e86a483ef94595349f0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|