import "../../utils/type.js";
import e from "../../utils/unpack.js";
import g from "../oklab/rgb2oklab.js";
import f from "../lch/lab2lch.js";
const d = (...o) => {
  const [t, c, b, ...r] = e(o, "rgb"), [l, m, n] = g(t, c, b), [a, p, s] = f(l, m, n);
  return [a, p, s, ...r.length > 0 && r[0] < 1 ? [r[0]] : []];
};
export {
  d as default
};
//# sourceMappingURL=rgb2oklch.js.map
