Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deep-codes/convert-colorcodes

A simple Hex to RGB, CMYK, HSL converter. It just works!
https://github.com/deep-codes/convert-colorcodes

cmyk-colors color-converter colors hexcode hsl-color npm rgb-color

Last synced: 13 days ago
JSON representation

A simple Hex to RGB, CMYK, HSL converter. It just works!

Awesome Lists containing this project

README

        

## Color Code Conversions

npm install
```bash
npm i convert-colorcodes
```

```javascript
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)

```