Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 323 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 323 Bytes

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.88)