hex-color-to-color-name

Converts Hex Codes to Color Names

Usage no npm install needed!

<script type="module">
  import hexColorToColorName from 'https://cdn.skypack.dev/hex-color-to-color-name';
</script>

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.

License

MIT