Convert a hexadecimal code to the name of the closest match in a short and curated list of human readable colors.
Color names are currently available in the following languages:
- English
- Italian
Just download the library from npm.
Using npm
npm install @igloo-cloud/hex-to-name --save
Using Yarn
yarn add @igloo-cloud/hex-to-name
const hexToName = new HexToName('en') // Set english as the default language
hexToName.convert('#ff0000') // Red