embcol.color.oklch_to_oklab

embcol.color.oklch_to_oklab(oklch, *, copy=True)[source]

Convert Oklch colors to Oklab colors.

Parameters:
  • oklch (array-like of float) – Oklch colors. The shape must be (3,) or (N, 3), where N is the number of colors. A given object can be overwritten with an output if copy is not True.

  • copy (bool or None, optional) – If True is given, oklch is always copied. If None is given, oklch is copied only if needed. If False is given, oklch is not copied and an error is raised if copying is needed.

Returns:

numpy.ndarray of float – Oklab colors. The shape is the same as oklch.