# name-the-color

> A command line tool that returns the color name for a HEX value.

Latest version **0.0.14** (published 2017-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install name-the-color
pnpm add name-the-color
yarn add name-the-color
bun add name-the-color
```

Provides the command `color`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2017-12-14 |
| First published | 2017-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yulolimum |

## Links

- npm: https://www.npmjs.com/package/name-the-color
- npm.io page: https://npm.io/package/name-the-color

## Dependencies (4)

- [gluegun](https://npm.io/package/gluegun.md) next
- [hex-rgb](https://npm.io/package/hex-rgb.md) ^1.0.0
- [nearest-color](https://npm.io/package/nearest-color.md) ^0.4.2
- [color-name-list](https://npm.io/package/color-name-list.md) ^3.9.0

## Recent versions

- 0.0.14 (latest) — 2017-12-14
- 0.0.13 — 2017-12-14
- 0.0.12 — 2017-12-14
- 0.0.11 — 2017-12-14
- 0.0.10 — 2017-12-14
- 0.0.9 — 2017-12-14
- 0.0.8 — 2017-12-14
- 0.0.7 — 2017-12-14
- 0.0.6 — 2017-12-14
- 0.0.5 — 2017-12-14
- 0.0.4 — 2017-12-14
- 0.0.3 — 2017-12-14
- 0.0.2 — 2017-12-14
- 0.0.1 — 2017-12-14

## README

---

# What is this?

A command line tool that returns the color name of a Hex color value.

It searches a [library](https://www.npmjs.com/package/color-name-list) of 16721 handpicked colors assembled from various sources and user submissions.

Now, since there are 16581375 possible RGB colors, there may not be an exact match. In that case, it finds the closest RGB neighbor.

![](http://d.pr/i/hrO0EW+)

---

# How do I use this?

First, install:
```bash
npm install name-the-color -g
```

Then, do a search by typing:
```bash
color 000000
// or
color "#000000"
// or
color \#000000
```

You'll get output similar to this:
| Color Name           | SCSS Variable              | Hex               | RGB                    | Distance           |
| -------------------- | -------------------------- | ----------------- | ---------------------- | ------------------ |
| Black                | $black: #000000;           | #000000           | rgb(0, 0, 0)           | 0.00               |

---
_Source: https://npm.io/package/name-the-color · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
