hex-colors-info
v1.0.2
Published
Get color name and other informations from Hex Color Code
Downloads
110
Readme
Hex Color Info
Get color name and other informations from Hex Color Code
Install
npm install hex-colors-info
Usage
// Example
const hexColorInfo = require ('hex-colors-info')
const colorInfo = hexColorInfo('#48D1CC')
console.log(colorInfo)
// {
// hex: '#48D1CC',
// name: 'Medium Turquoise',
// hueHex: '#0000FF',
// hueName: 'Blue',
// match: true
// }
Refs
- Name that Color : http://chir.ag/projects/name-that-color
- Color Name & Hue : http://www.color-blindness.com/color-name-hue