/color-space:color-spacefrom color-space
Converts colors between 221 color spaces (sRGB, Display P3, OKLCH, CIELAB, CAM16, HCT, ICtCp, camera logs, print models), generates CSS Color 4 strings, checks gamuts, produces .cube LUTs, ICC profiles, and shader code (GLSL, WGSL, HLSL, MSL).
Ships in color-space. 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.
None: SKILL.md is the whole skill.
Color math is where models produce plausible numbers that are wrong in the third decimal. This library holds 221 color spaces, each pinned to an authoritative reference (colorjs.io, colour-science, the defining paper or standard). Call it instead of computing.
If the color-space MCP server is connected, use its tools:
| need | tool |
|---|---|
| convert a color or a batch | convert – color: '#ff8000' (any CSS color) or from + values |
| which display gamut holds it | gamut |
| CSS Color 4 strings | css |
| what a space is: channels, ranges, references, year | space, spaces (searchable) |
| shader code for a conversion | shader (glsl, wgsl, hlsl, msl) |
| JS call and verified Python (colour-science) equivalent | code |
| .cube LUT, ICC profile | cube, icc |
Not connected? Add it: claude mcp add color-space -- npx -y color-space mcp.
npx -y color-space rgb oklch 255 128 0 · npx -y color-space space oklch · npx -y color-space cube slog3 rec709 > slog3.cubeimport space from 'color-space'; space.rgb.oklch(255, 128, 0) – any pair, space.<from>.<to>(...); ids with hyphens index as strings: space.oklch['lab-d65'](...).import { glsl } from 'color-space/gl/all'; glsl('rgb', 'oklch') → vec3 rgb_oklch(vec3 c).lab / lchab are D50 (CSS, ICC); lab-d65 / lch-d65 are the display-native D65 forms.color(rec2020 …) is BT.1886's 2.4 gamma; this library's rec2020 carries the BT.2020 OETF. The color input handles that.Catalog and per-space dossiers: https://color-space.io
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub colorjs/color-space --plugin color-spaceOther plugins' skills for the same job