import '../../utils/type.mjs';
import unpack from '../../utils/unpack.mjs';
import lch2lab from './lch2lab.mjs';
import lab2rgb from '../lab/lab2rgb.mjs';

const lch2rgb = (...args) => {
    args = unpack(args, 'lch');
    const [l, c, h] = args;
    const [L, a, b_] = lch2lab(l, c, h);
    const [r, g, b] = lab2rgb(L, a, b_);
    return [r, g, b, args.length > 3 ? args[3] : 1];
};

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