Color Palette
Generate color palettes and check WCAG accessibility compliance for UI design.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/color-paletteColor Palette
Generate harmonious color palettes and verify accessibility compliance.
Instructions
-
Generate palette from a base color (hex, RGB, HSL, or name):
- Complementary: Opposite on color wheel (+180°)
- Analogous: Adjacent colors (±30°)
- Triadic: Three evenly spaced (120° apart)
- Split-complementary: Base + two adjacent to complement
- Monochromatic: Shades/tints of one hue
-
Brand palette: From brand description or existing colors, suggest:
- Primary, Secondary, Accent, Background, Text, Error, Success
-
WCAG Accessibility Check: For any fg/bg pair, calculate contrast ratio:
Linearize: c ≤ 0.04045 → c/12.92, else ((c+0.055)/1.055)^2.4 Luminance: L = 0.2126*R + 0.7152*G + 0.0722*B Ratio: (L_light + 0.05) / (L_dark + 0.05)- AA normal text: ≥ 4.5:1
- AA large text: ≥ 3:1
- AAA normal text: ≥ 7:1
-
Output format:
🎨 Palette: Analogous from #3B82F6 | Role | Hex | RGB | Name | |-----------|---------|---------------|------------| | Primary | #3B82F6 | 59, 130, 246 | Blue | | Secondary | #6366F1 | 99, 102, 241 | Indigo | | Accent | #22D3EE | 34, 211, 238 | Cyan | ✅ #1E293B on #F8FAFC → 15.4:1 (AAA Pass) ❌ #94A3B8 on #F8FAFC → 2.8:1 (AA Fail — try #64748B) -
Export: Generate CSS custom properties or Tailwind config:
:root { --color-primary: #3B82F6; --color-secondary: #6366F1; }
Edge Cases
- Dark mode: Generate both light and dark variants
- Color blindness: Warn if palette relies on red/green distinction alone
- Near-failing contrast: Suggest nearest passing alternative
Requirements
- No dependencies — pure calculation
- No API keys needed
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-sa9saq-color-palette": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
threat-model
Threat modeling and attack scenario design. Identify risks before they become vulnerabilities. STRIDE, attack trees, risk matrix.
Sns Auto Poster
Schedule and automate social media posts to X/Twitter with cron-based queue management.
security-review
Comprehensive security review for code, configs, and operations. OWASP, prompt injection, crypto security. Auto-triggers on security-related changes.
Process Monitor
Monitor system processes, identify top CPU/memory consumers, and alert on resource thresholds.
Readme Generator
Auto-generate comprehensive README.md files by analyzing project structure and configuration.