Skip to content

Deep-Codes/convert-colorcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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)