/llmctl-design:colourfrom llmctl Design
Derives colour palettes from perceptual reasoning — lightness, chroma and hue as separable axes — rather than from named harmony rules or handed-over values, and covers how colours alter each other in combination and what a combination makes a viewer feel. ALWAYS invoke before choosing, naming, adjusting or judging any colour, palette or colour token, and when encoding data by colour. Owns colour-vision-deficiency and contrast verification for every medium; it does not cover layout, type, print production or projection. Do not pick a hex value, apply a complementary or triadic scheme, or eyeball a contrast ratio without this skill. Keywords: colour, color, palette, hue, chroma, saturation, lightness, contrast, accessibility, colour blindness, OKLCH, accent, neutrals, theme, dark mode.
Ships in llmctl Design. 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; scripts run unread.
Derives colour from the brief rather than carrying one. This skill ships no palette. Every value in the output traces to a decision made here, to something the project already had, or to what the user asked for.
Colour choice is downstream of direction — get the audience, medium and register from design-direction first.
Reason in OKLCH, where lightness, chroma and hue move independently. Changing one there leaves the other two intact, which is what makes derivation possible at all.
| Axis | Is | Does the work of |
|---|---|---|
| Lightness | Perceived reflectance against a similarly lit white | Legibility, hierarchy, depth |
| Chroma | Colourfulness relative to a neutral of the same lightness | Intensity, energy, mood |
| Hue | Position on the colour circle | Identity and recognition — and less else than assumed |
Two more terms get used as if they were the ones above, and are not:
| Task | Space | Why |
|---|---|---|
| Perceptual manipulation, scales, ramps | OKLCH | Best uniformity across L, C, H; fixes CIELAB's blue problem |
| Mixing and gradients | OKLab | No grey mid-gradient the way sRGB and HSL produce |
| Gamut-aware picking | OkHSL / OkHSV | Cylindrical like HSL but perceptually grounded |
| Saturation normalised 0–100% per hue | HSLuv | CIELUV chroma normalised by hue and lightness |
| CIELAB D50 | The ICC standard illuminant | |
| Matching appearance across media or lighting | CAM16 | Models surround, adaptation and viewing conditions |
| High dynamic range | Jzazbz / ICtCp | Built for extended range; OKLab is not |
| Colour difference, precision | CIEDE2000 | The reference metric |
| Colour difference, quick | Euclidean in OKLab | Close enough for palette separation work |
| Colormap uniformity | CAM02-UCS or OKLab | CIELAB is poor for nearby colours, which is what even sampling depends on |
Reach past OKLCH deliberately. Naming the space is part of stating the decision.
HSL is a geometric rearrangement of RGB, not a perceptual model. Three failures matter:
hsl(60 100% 50%) and hsl(240 100% 50%) share L=50%; the yellow is dazzling and the blue is nearly black.Consequence: a ramp built by stepping HSL lightness has uneven perceived steps and muddy mid-tones, and interpolating between two colours through sRGB or HSL greys out the middle. Interpolate in a perceptual space.
Asking for more chroma than exists at a given lightness and hue does not error — it clips, usually duller and hue-shifted. Fix it by reducing chroma, holding lightness and hue. Clamping RGB channels instead shifts the hue and destroys the colour's identity.
Three consequences that decide where the bug appears:
oklch() and color() automatically, so authored CSS rarely clips badly. A hand-rolled oklch → hex conversion just truncates channels. The same palette can be correct in the stylesheet and wrong in the script that generated it.Named harmony schemes predict almost nothing you care about. Complementary, triadic and tetradic are hue-angle recipes, and hue angle alone forecasts neither mood, nor legibility, nor contrast compliance. The deeper problem is geometric: the volume of realisable colour differs at every hue, so two values 180° apart are not two equally-weighted colours — they are whatever their two hue planes happened to allow.
State this to yourself before every palette, because the default behaviour — absorbed from training data — is to reach for the colour wheel and treat the result as justified.
Chroma and lightness predict emotional response more reliably than hue does. Organise by character — pale, muted, deep, vivid, dark — before touching hue. A muted palette reads calm across many different hues; a vivid one reads energetic across many different hues. Relaxed versus intense is a chroma-and-lightness question.
This is measured, not asserted: Valdez and Mehrabian (1994) found brightness and saturation carried most of the variance in rated pleasure and arousal while hue effects stayed weak, and Ellen Divers' Colour Character Compass builds design practice on the same result. Both rest on Western samples — treat the character axis as the durable finding and any particular reading as audience-dependent.
This is the hinge that makes the skill steerable:
Where hue does carry meaning it is cultural and contextual, never universal. Red is danger in one setting and prosperity in another. Never assert a universal hue-to-emotion mapping. If the association matters, derive it from the stated audience.
A colour has no fixed appearance. The same value looks lighter against a dark ground, darker against a light one, and shifts in hue away from whatever surrounds it — simultaneous contrast, the substance of Albers' Interaction of Color. Four consequences do real work:
Dominance must be unambiguous. The 60-30-10 shorthand — a dominant colour over roughly 60% of the surface, a secondary at 30%, an accent at 10% — is a starting distribution rather than a law. What it protects against is three colours at equal weight fighting for the same rank. Hold the ranking; move the ratio to suit the work.
Order matters; each step constrains the next.
surface, on-surface, accent, danger. A palette that is regenerated must not require rewriting whatever consumes it. Emit the rule, not the frozen result — text := bestContrastWith(surface, palette) survives a palette change; a hex pasted into a component does not. See references/implementation.md.If you cannot say what each value is for, you have swatches rather than a palette.
Measure every pair, in every theme, before shipping. A colour looking fine in the render you just produced is not evidence, and neither is a ratio you calculated in your head.
Run scripts/check-contrast.py — standard library, no install:
python check-contrast.py pair "body=#4a4a4a/#ffffff" "link=#0b5/#fff"
python check-contrast.py cvd "#e69f00" "#56b4e9" "#009e73" "#cc79a7"
python check-contrast.py selftest
pair prints WCAG 2 and APCA side by side and exits non-zero on a WCAG failure, so it also works as a build gate. cvd simulates each colour under protanopia, deuteranopia and tritanopia and ranks how close the nearest pair ends up — the check greyscale cannot perform. Paste the output; that table is the verification artefact.
pip install coloraide is optional and worth it: input then accepts any CSS colour, including oklch() and Display-P3, so a value derived in OKLCH can be checked without converting it by hand first. It also composites alpha over the background instead of ignoring it — a 50%-opacity black on white measures 3.95:1 and fails, where treating it as opaque black reports 21:1 and passes. selftest verifies the maths against published values, and against coloraide as a second implementation when it is installed.
Contrast. Measure with both, because they fail in different places. WCAG 2 is the testable standard, but its ratio overstates contrast near black — a dark-theme pair can clear 4.5:1 and still be unreadable. APCA is polarity- and size-aware: stricter than WCAG for body text, more permissive for large or ancillary elements. It is not uniformly the harsher of the two. Satisfy WCAG because that is what gets audited, and treat an APCA shortfall as a real defect rather than a difference of opinion. Both thresholds are harder to hit than intuition suggests. Brute-forced across all ~281 trillion sRGB pairs:
| Threshold | Pairs passing |
|---|---|
| WCAG 3:1, large text | 26.5% — about 1 in 4 |
| WCAG 4.5:1, AA body | 12.0% — about 1 in 8 |
| WCAG 7:1, AAA | 3.6% — about 1 in 27 |
| APCA Lc 60 | 7.3% — about 1 in 14 |
| APCA Lc 75, fluent reading | 1.6% — about 1 in 64 |
| APCA Lc 90, preferred body | 0.08% — about 1 in 1,250 |
This is why a palette cannot be picked and then checked. At the tiers real body text needs, almost nothing passes by luck, so contrast has to be a constraint during derivation rather than a gate after it.
Colour-vision deficiency. Simulate it, per deficiency type. Red-green deficiency affects roughly 8% of men of Northern European ancestry — the figure usually quoted — appreciably fewer elsewhere, and about 0.5% of women. A greyscale check is not a CVD check. It tests lightness separation only; two hues can separate well in greyscale and still collide under deuteranopia.
Greyscale as its own check. If the design collapses when desaturated, it is encoding meaning in hue alone.
When a required distinction cannot be made to pass, add a channel — shape, position, a direct label, a border — rather than pushing chroma further.
Chart fills: use the border trick. Holding 3:1 between three chart fills and each other is very hard; past three it is effectively impossible, because the number of pairs to satisfy grows as N². Put a border on the marks and require 3:1 between each fill and the border instead — one constraint per colour rather than N². (Matt Ström, How to pick the least wrong colors, 2022.)
Emit the check; do not claim it. "Contrast verified" with no numbers is indistinguishable from not having checked, which is how this step gets skipped.
presentation, which owns that medium.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siegenthalerroger/.llmctl-marketplace --plugin llmctl-designOther plugins' skills for the same job
7 skills in this plugin
/datavizDesign Machines data visualization and information graphics philosophy rooted in graphical integrity, data-ink efficiency, and editorial integration. Use when critiquing charts and graphs, choosing chart types, advising on visualization choices, evaluating information graphics, building dashboards, or reviewing any data presentation in HTML/CSS, SVG, D3.js, Figma, InDesign, Illustrator, or Affinity. Trigger this skill when the user asks about charts, graphs, infographics, data display, sparklines, pie charts, bar charts, line charts, dashboards, data-ink ratio, or how to present numbers visually -- even casually like "should I use a pie chart here" or "this chart looks cluttered." Also trigger when building Assembly financial dashboards, equity visualizations, or any interface that displays quantitative data to co-op members. Draws primarily on Dona M. Wong, Edward Tufte, and Francesco Franchi./design-directionSets the visual direction for design work by deriving palette, type and layout register from the subject, audience and medium instead of a house default, then screening the result against known AI design tells. ALWAYS invoke before producing a page, deck, document, chart, layout or identity, and whenever output is called generic, templated or AI-looking. Routes to the layout, typography, colour, identity, dataviz and presentation skills and settles precedence between them; it does not itself teach any single domain. Do not choose a colour, typeface or layout before establishing the brief this skill defines. Keywords: design direction, art direction, brief, aesthetic, style, register, visual identity, AI slop, generic design, design critique.