fromOklch
Copy an Oklch value into a new Color. Channels are copied unchanged (the hue is not normalized).
import { fromOklch } from '@pbroom/color-kit';index.ts:379function fromOklch(oklch: Oklch): Color;Parameters
Returns
ColorA new Color with the same channels
Example
import { fromOklch, toHex } from '@pbroom/color-kit';
toHex(fromOklch({ l: 0.7, c: 0.15, h: 30, alpha: 1 })); // → '#ed7665'