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: 17 days ago
JSON representation
A simple Hex to RGB, CMYK, HSL converter. It just works!
- Host: GitHub
- URL: https://github.com/deep-codes/convert-colorcodes
- Owner: Deep-Codes
- Created: 2020-10-10T16:35:04.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-12T15:09:55.000Z (about 5 years ago)
- Last Synced: 2025-08-05T23:30:26.657Z (3 months ago)
- Topics: cmyk-colors, color-converter, colors, hexcode, hsl-color, npm, rgb-color
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/convert-colorcodes
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```