opsinjs

Oklch

A colour in OKLCH.

How this is generated

Source: lib/color/oklch.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

Oklch

A colour in OKLCH. l 0 to 1, c unbounded, h in degrees.

KindDeclared in
interfacelib/color/oklch.ts
export interface Oklch {
  l: number
  c: number
  h: number
  alpha?: number
}

On this page