colorjs avatar

color-space

colorjs/color-space

Conversions across 221 color spaces, tested against cited sources: CSS strings, gamut, LUTs

GitHub stars
393
tools
9
transport
STDIO
last updated
Oct 20, 2026

Tools

9 tools

Public tool metadata for what this MCP can expose to an agent.

convertConvert a color between color spaces.

Convert a color between color spaces.

No parameter schema in public metadata yet.

gamutCheck whether a color lies within a gamut.

Check whether a color lies within a gamut.

No parameter schema in public metadata yet.

cssReturn the color as a CSS string.

Return the color as a CSS string.

No parameter schema in public metadata yet.

spaceDescribe a color space.

Describe a color space.

No parameter schema in public metadata yet.

spacesList the available color spaces.

List the available color spaces.

No parameter schema in public metadata yet.

cubeGenerate a .cube LUT for a color conversion.

Generate a .cube LUT for a color conversion.

No parameter schema in public metadata yet.

shaderWrite a color conversion as GLSL, WGSL, HLSL or MSL shader code.

Write a color conversion as GLSL, WGSL, HLSL or MSL shader code.

No parameter schema in public metadata yet.

iccGenerate an ICC profile for a color space.

Generate an ICC profile for a color space.

No parameter schema in public metadata yet.

codeGive the JS call for a conversion and its verified colour-science equivalent.

Give the JS call for a conversion and its verified colour-science equivalent.

No parameter schema in public metadata yet.

Sponsors

Readme

color-space test npm size VS Code

the Ostwald hue circle at full color, shown continuously and in ten steps

Open collection of color spaces.

  • Formulas tested against cited sources – errata found in them
  • Conventional ranges
  • JS with TypeScript types / WASM / GLSL / LUT / ICC / OCIO

Atlas →

Use

import space from 'color-space';

View the full README on GitHub

Details

Repository
github.com/colorjs/color-space
Website
color-space.io
Package
color-space
Transport
STDIO
Registry
MCP registry, active