1.0.2 • Published 6 years ago
hex-colors-info v1.0.2
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