Convert Colors
import {
HSLColor, RGBColor, LABColor,
hslToRgb, rgbToHsl,
hslToHex, rgbToHex, hexToRgb,
rgbToLab, labToRgb,
} from 'mz-math';
const decimalPlaces = 2;
const hslColor: HSLColor = rgbToHsl([255, 0, 0], decimalPlaces);
const rgbColor: RGBColor = hslToRgb([100, 100, 100], decimalPlaces);
const hex: string = hslToHex([10, 10, 10]);
const hex: string = rgbToHex([235, 64, 52]);
const rgbColor: RGBColor = hexToRgb('#eb4034');
const labColor: LABColor = rgbToLab([255, 255, 255], decimalPlaces);
const rgbColor: RGBColor = labToRgb([100, 0, 0], decimalPlaces);