import '../../utils/type.mjs';
import unpack from '../../utils/unpack.mjs';
import lch2lab from '../lch/lch2lab.mjs';
import oklab2rgb from '../oklab/oklab2rgb.mjs';

const oklch2rgb = (...args) => {
    args = unpack(args, 'lch');
    const [l, c, h, ...rest] = args;
    const [L, a, b_] = lch2lab(l, c, h);
    const [r, g, b] = oklab2rgb(L, a, b_);
    return [r, g, b, ...(rest.length > 0 && rest[0] < 1 ? [rest[0]] : [])];
};

export { oklch2rgb as default };
//# sourceMappingURL=oklch2rgb.mjs.map
