@pbroom/color-kitTypes

Oklab

OKLab color, the rectangular form of OKLCH (perceptually uniform).

interfaceimport type { Oklab } from '@pbroom/color-kit';types.ts:94
interface Oklab {
  L: number;
  a: number;
  b: number;
  alpha: number;
}

Properties

Lnumber
Lightness: 0-1.
anumber
Green (negative) to red (positive) axis: about -0.4 to 0.4.
bnumber
Blue (negative) to yellow (positive) axis: about -0.4 to 0.4.
alphanumber
Opacity: 0-1.