axiom-color-palette
Version: 0.1.2 Axioma Tools
Extracts the dominant color palette from an image using frequency analysis.
What this skill does
- Frequency-based color extraction
- Configurable palette size (3-16 colors)
- Optional K-means clustering
- Outputs hex codes + RGB tuples
- JSON output for design tools
When to use this skill
- ✅ Generate palette for website redesign
- ✅ Find dominant brand colors in an image
- ✅ Analyze color trends in design portfolios
- ❌ Convert color spaces (use colormath)
- ❌ Render images (use Pillow)
Usage
python3 axiom_color_palette.py logo.png --colors 5
python3 axiom_color_palette.py photo.jpg --json > palette.json
from axiom_color_palette import extract_palette
colors = extract_palette('image.png', n_colors=5)
# [('#FF5733', 42), ('#33FF57', 28), ...]
Validation
| Check | Status |
|---|---|
| Unit tests | 15+ cases |
| Performance | <100ms |
| Security | Pure stdlib, no injection |
| Determinism | Byte-to-byte stable |
| License | Apache-2.0 |
Last updated: 2026-06-14
