@dragonspark/chroma-kit
    Preparing search index...

    Function p3ToOklab

    • Converts a P3 color to the OKLab color space.

      This function first converts the P3 color to XYZ, then from XYZ to OKLab. OKLab is a perceptually uniform color space designed to better represent how humans perceive color differences.

      Parameters

      • color: P3Color

        The P3 color to convert

      Returns OKLabColor

      The color in OKLab space