# color-name

> A list of color names and its values

Latest version **2.1.1** (published 2026-07-22) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2026-07-22 |
| First published | 2014-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/color-name) |
| Module format | ESM + CommonJS |
| Node | >=12.20 |
| Dependencies | 0 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 126 |
| Author | Dmitry Iv |
| Maintainers | dfcreative, moox, dy |
| Keywords | color-name, color, color-keyword, keyword |

## Links

- npm: https://www.npmjs.com/package/color-name
- Repository: https://github.com/colorjs/color-name
- Issues: https://github.com/colorjs/color-name/issues
- npm.io page: https://npm.io/package/color-name

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 2.1.1 (latest) — 2026-07-22
- 2.1.0 — 2025-11-12
- 2.0.2 — 2025-09-13
- 2.0.0 — 2022-11-08
- 1.1.4 — 2018-09-21
- 1.1.3 — 2017-07-15
- 1.1.2 — 2017-03-14
- 1.1.1 — 2015-12-24
- 1.1.0 — 2015-12-24
- 1.0.1 — 2015-09-21
- 1.0.0 — 2014-12-15
- 0.0.2 — 2014-11-23
- 0.0.1 — 2014-11-23

## README

# color-name

A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors.

`$ npm install color-name`

```js
import colors from 'color-name';
colors.red // [255,0,0]
```

<a href="LICENSE"><img src="https://upload.wikimedia.org/wikipedia/commons/b/b8/MIT_2023_red_logo.svg" width="60"/></a>

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