hex-color-to-color-name
v1.0.2
Published
Converts Hex Codes to Color Names
Downloads
24,106
Maintainers
Readme
HexColorToColorName
HexColorToColorName is a TypeScript library which give you the closest human-readable color name for a color's hexcode.
Installation
Use the package manager npm to install HexColorToColorName.
npm install hex-color-to-color-name
Usage
import { GetColorName } from 'hex-color-to-color-name';
const colorName = GetColorName('000000'); # returns 'Black'
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.