</>PackageGraphPackageGraph

color-name

npmv2.1.1

A list of color names and its values

Safe to adopt

Yes — color-name scores well across adoption, maintenance, weight, supply chain, and licensing. 349.8M downloads per week and 3 known dependents. Last published 49 days ago. 3 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    349.8M downloads per week and 3 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 49 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 6.2 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding color-name to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.2 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=12.20
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the color-name README.

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

color-name vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
color-namethis page349.8M3MIT1 month ago
color-convert342.8M1MIT6 days ago
color51.9M3MIT6 days ago
@csstools/css-color-parser02MIT5 days ago
rgb2hex01MIT5 days ago
@react-native/normalize-colors03MIT6 days ago

Used by

Popular packages that depend on color-name.

Relationship graph

Dependencies (left) and dependents (right) of color-name.

color-convertwebpackcolor-stringcolor-name
color-name dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 252 days apart.

Recent versions of color-name
VersionPublishedSizeLicense
2.1.1latest1 month ago6.2 KBMIT
2.1.010 months ago6.2 KBMIT
2.0.21 year ago6.1 KBMIT
2.0.03 years ago6.1 KBMIT
1.1.48 years ago6.5 KBMIT
1.1.39 years agoMIT
1.1.29 years agoMIT
1.1.110 years agoMIT
1.1.010 years agoMIT
1.0.111 years agoUnlicense
1.0.011 years agounlicensed
0.0.211 years agounlicensed
0.0.111 years agounlicensed

Overview

color-name is an npm package that a list of color names and its values. It is extremely widely used, with about 349.8M downloads per week and 3 known dependents in the graph. The latest version is 2.1.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a list of color names and its values and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (349.8M weekly downloads).
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use color-name?

Yes — color-name scores well across adoption, maintenance, weight, supply chain, and licensing. 349.8M downloads per week and 3 known dependents. Last published 49 days ago. 3 releases in the last 2 years.

How do I install color-name?

Run `npm install color-name` to add color-name to your npm project.

What license is color-name released under?

color-name is distributed under the MIT license.

How popular is color-name?

color-name has approximately 349,832,686 downloads per week and 3 known dependent packages.

Is color-name still maintained?

The most recent release of color-name (v2.1.1) was published 1 month ago.

Does color-name run install scripts?

No. color-name does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.