color-space

162 spaces
v3.0.0

Display & web19

Cylindrical9

Perceptual — modern12

Perceptual — CIE classic15

HDR & wide gamut11

Colorimetry & vision16

Video & broadcast15

Film & camera37

Appearance models15

Print & physical7

Specialty & research6

162 coordinate systems.

Web, print, photography, film, broadcast, art, science, and history. Each carries conventional ranges, gamut shapes, provenance, cited references, known limits, and the canonical conversion. Convert any space to any other: rgb to oklch, slog3 to rec709, cct-duv to rgb. No code needed either — export a .cube LUT for Resolve, Premiere, Final Cut, and OBS.

  • Reference-tested
  • Conventional ranges
  • Public domain
import space from 'color-space'

space.rgb.oklch(255, 128, 0)      // → [0.732, 0.186, 53]
space.oklch.rgb(0.65, 0.25, 180)  // any of 162 × 161 pairs

space.oklch.name    // 'oklch'
space.oklch.range   // [[0,1], [0,0.4], [0,360]]

// one space only — tree-shaken, 0.4-1.5 kB
import oklch from 'color-space/oklch.js'
oklch.rgb(0.65, 0.25, 180)
Copied