import { HSL , XYZ , LAB , RGB } from '../types' ; export const toHslString = ( { h , s , l } ) => `hsl(${ h }, ${ s }%, ${ l }%)` ; export const toXyzString = ( { x , y , z } ) => `xyz(${ x }, ${ y }, ${ z })` ; export const toLabString = ( { l , a , b } ) => `lab(${ l }, ${ a }, ${ b })` ; export const toRgbString = ( { r , g , b } ) => `rgb(${ r }, ${ g }, ${ b })` ; export const toHexString = ( hex ) => `#${ hex }` ;