convert-colorcodes
v1.0.2
Published
Color Code Conversion Library
Downloads
9
Maintainers
Readme
Color Code Conversions
npm install
npm i convert-colorcodes
const {hexToHSL , hexToRGB, hexToCMYK} = require('convert-colorcodes')
console.log(hexToRGB('#1e1e1e'))
console.log(hexToHSL('#1e1e1e'))
console.log(hexToCMYK('#1e1e1e'))
// rgb(30,30,30)
// hsl(0,0%,12%)
// cmyk(0,0,0,0.8823529411764706)