/visual-design-principles:color-theory-applicationfrom visual-design-principles
Guides color selection and palette generation using HSL, harmony schemes, shade scales, WCAG contrast, and semantic color systems. Useful for UI design, dark mode, and brand colors.
Ships in visual-design-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Color decisions made by intuition drift over time. Color decisions made by system scale indefinitely. Pick hues with harmony theory, generate shades with lightness math, enforce contrast with WCAG, and assign meaning with semantic tokens.
Use HSL (Hue, Saturation, Lightness) for all color work. RGB and hex are machine formats — HSL maps to how humans perceive color.
| Task | HSL | RGB/Hex |
|---|---|---|
| Make a color lighter | Increase L | Guess and check all 3 channels |
| Create a complementary color | Rotate H by 180 degrees | No intuitive relationship |
| Generate a shade scale | Fix H and S, vary L in steps | Manual trial and error |
For perceptual uniformity in production, consider OKLCH (oklch(L C H)) — it corrects HSL's lightness distortion across hues.
| Tier | Percentage | Role | Typical Choice |
|---|---|---|---|
| Dominant | 60% | Backgrounds, surfaces | Neutral (white, light gray, dark gray) |
| Secondary | 30% | Cards, sidebars, borders | Tinted neutral or subdued brand |
| Accent | 10% | CTAs, highlights, active states | Saturated brand color |
Limit to 3-6 distinct hue families. Most successful SaaS products use a single brand hue plus neutrals and semantic colors.
Generate 9 steps (50-900) by fixing hue, varying lightness, and reducing saturation 5-15% at extremes.
| Step | Lightness | Use Case | Step | Lightness | Use Case |
|---|---|---|---|---|---|
| 50 | 95-97% | Subtle backgrounds | 500 | 45-50% | Base color |
| 100 | 90-92% | Light backgrounds | 600 | 38-42% | Hover states |
| 200 | 82-85% | Borders, dividers | 700 | 28-32% | Active/pressed |
| 300 | 70-75% | Disabled states | 800 | 20-23% | Dark text |
| 400 | 58-62% | Placeholder text | 900 | 12-15% | Headings |
Apply WCAG AA contrast ratios (see accessibility-inclusive-design skill for the full requirements). In practice: text on the 500 shade rarely passes against white. Use 600-900 for text, 50-200 for backgrounds. Always verify with a contrast checker.
Never use #000000. Pure black creates 21:1 contrast against white, causing eye fatigue. Use brand-tinted dark grays instead: hsl(220, 15%, 12%) for text, hsl(220, 15%, 10%) for dark backgrounds.
Assign fixed meaning: success = green, warning = amber, error = red, info = blue. Never repurpose these hues. Always pair color with redundant encoding (see accessibility-inclusive-design skill for color independence rules).
Dark mode is not an inversion:
hsl(H, 10-15%, 10-12%) for backgrounds| Scheme | Hue Relationship | Best For |
|---|---|---|
| Complementary | 180 degrees apart | CTAs, alerts |
| Analogous | 30 degrees apart | Backgrounds, gradients |
| Triadic | 120 degrees apart | Data visualization |
| Split-complementary | 150 + 210 degrees | Versatile; safer than complementary |
| Anti-Pattern | Fix |
|---|---|
| More than 6 hue families | Limit to 3-6 hues maximum |
| No contrast verification | Test every text/background pair (see accessibility-inclusive-design for ratios) |
| Pure black (#000) | Use brand-tinted dark grays |
| Color as the sole indicator | Apply color independence rule (see accessibility-inclusive-design skill) |
| Inverting colors for dark mode | Reduce saturation 10-20%; use dark grays |
Working implementations in examples/:
examples/color-system-and-dark-mode.md — Complete HSL-based color system with shade scale generation, semantic tokens, and dark mode in CSS, Tailwind, and ReactWhen reviewing or building color systems:
accessibility-inclusive-design skill)accessibility-inclusive-design skill)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub oborchers/fractional-cto --plugin visual-design-principles12 skills in this plugin
/accessibility-inclusive-designThis skill should be used when the user is implementing accessible design, checking color contrast ratios, adding keyboard navigation, supporting screen readers, handling color blindness, implementing ARIA attributes, designing focus indicators, meeting WCAG 2.2 compliance, or building inclusive interfaces. Covers WCAG 2.2 AA requirements, color contrast (4.5:1 body, 3:1 large text), color independence (never rely on color alone), keyboard navigation, focus indicators, touch targets, screen reader considerations, and automated testing with axe-core./consistency-design-systemsThis skill should be used when the user is building a design system, defining design tokens, creating component libraries, implementing CSS custom properties, ensuring visual consistency across pages, choosing between design systems (Material, Ant, Carbon), or auditing a codebase for design consistency. Covers design tokens (primitive → semantic → component layers), atomic design methodology, token governance, and systematic consistency./craftsmanship-polishThis skill should be used when the user is polishing UI details, optimizing images, implementing shadows or elevation systems, ensuring pixel-perfect alignment, defining border-radius systems, adding micro-interactions or transitions, handling loading/empty/error states, or reducing Cumulative Layout Shift (CLS). Covers VisAWI Craftsmanship facet, retina-ready images, layered shadows, consistent border-radius, transition timing, skeleton screens, and layout stability.Other plugins' skills for the same job