Gathering detailed insights and metrics for color-name-list
Gathering detailed insights and metrics for color-name-list
Gathering detailed insights and metrics for color-name-list
Gathering detailed insights and metrics for color-name-list
npm install color-name-list
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.3
Supply Chain
100
Quality
94
Maintenance
100
Vulnerability
100
License
JavaScript (95.39%)
Shell (2.57%)
Smarty (2.04%)
Total Downloads
6,592,407
Last Day
1,625
Last Week
27,110
Last Month
114,460
Last Year
1,515,049
MIT License
2,614 Stars
913 Commits
190 Forks
27 Watchers
7 Branches
31 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
11.23.0
Package Id
color-name-list@11.23.0
Unpacked Size
16.52 MB
Size
4.42 MB
File Count
67
NPM Version
10.9.0
Node Version
20.19.1
Published on
Jun 06, 2025
Cumulative downloads
Total Downloads
Last Day
106.2%
1,625
Compared to previous day
Last Week
0.1%
27,110
Compared to previous week
Last Month
-15.7%
114,460
Compared to previous month
Last Year
-14.8%
1,515,049
Compared to previous year
A meticulously curated collection of 30355 unique color names, sourced from various references and thousands of thoughtful user contributions.
The names of color function like a thread attached to a frightfully slender needle, capable of stitching together our most delicate emotions and memories. When the needle hits the target, we feel either pleasure or empathy. Kenya Hara – White
Explore / Find Names | Name distribution in different models | Usage | CDN | Public Rest API | Usage JS/Java/Kotlin/C# | Name Sources | Latest Color Names | Sponsors
This project aims to assemble the largest possible list of color names, while maintaining high standards for name quality. We have merged numerous lists, resolved duplicate names with different hex values, and adjusted colors where identical values had different names.
via form 🌈 / or twitter 🐦
Please review the naming rules before contributing!
To contribute via Git, edit the src/colornames.csv
file
and ensure it builds correctly (npm run ci && npm run build
).
~0.18% of the RGB color space
When creating new color names, it's essential to understand which areas of a
color space are crowded and where new names can be added. For example, our API
returns the closest RGB
color to a given HEX
value. To prevent too many
colors from mapping to the same name, we strive for an even distribution in
color space: Visualization
The list is available in multiple formats, or you can use the public REST API, making it easy to integrate into your project.
Size Warning (1.16 MB): For browser usage, consider the public rest API
1npm install color-name-list --save
or yarn add color-name-list
JSON / JSON.min / CSV / YML / JS / XML / HTML / SCSS
JSON / JSON.min / CSV / YML / JS / XML / HTML / SCSS / CSS
To simplify access, we provide a free and public REST API for all color names and other public name lists. Full API code and documentation are available in this repository.
1https://api.color.pizza/v1/?values=00f,f00,f00&list=bestOf
The API is free and has no usage limits. However, if your commercial app or site generates excessive traffic, you may be asked to become a sponsor.
You are welcome to self-host the API—it's easy to deploy on Heroku and relies only on a few dependencies: Color-Name-API
Size Warning (1.16 MB): For browser usage, consider the public rest API
1import { colornames } from 'color-name-list'; 2 3let someColor = colornames.find((color) => color.hex === '#ffffff'); 4console.log(someColor.name); // => white 5 6let someNamedColor = colornames.find((color) => color.name === 'Eigengrau'); 7console.log(someColor.hex); // => #16161d
With 16,777,216 possible RGB colors, you may want to use a library such as nearest-color or ClosestVector to find the closest named color.
1import nearestColor from 'nearest-color'; 2import { colornames } from 'color-name-list'; 3 4// nearestColor expects an object {name => hex} 5const colors = colornames.reduce((o, { name, hex }) => Object.assign(o, { [name]: hex }), {}); 6 7const nearest = nearestColor.from(colors); 8 9// get closest named color 10nearest('#f1c1d1'); // => Fairy Tale
Note: For greater visual accuracy, consider using DeltaE or the above approach with ciecam02 instead of RGB.
1npm install && npm run build
See package.json for details.
Java/Kotlin support is provided by: UwUAroze/Color-Names. See the repository for more, or use the basics below:
1repositories { 2 maven("https://jitpack.io") 3} 4 5dependencies { 6 implementation("me.aroze:color-names:1.0.4") 7}
1<repository> 2 <id>jitpack.io</id> 3 <url>https://jitpack.io</url> 4</repository> 5 6<dependency> 7 <groupId>me.aroze</groupId> 8 <artifactId>color-names</artifactId> 9 <version>1.0.4</version> 10</dependency>
1public ColorNames colorNames = new ColorNameBuilder() 2 .loadDefaults() 3 .build(); 4 5String fromHex = colorNames.getName("#facfea"); // "Classic Rose" 6String fromRGB = colorNames.getName(224, 224, 255); // "Stoic White" 7String fromColor = colorNames.getName(new Color(255, 219, 240)); // "Silky Pink"
1val colorNames = ColorNameBuilder()
2 .loadDefaults()
3 .build()
4
5val fromHex = colorNames.getName("#facfea") // "Classic Rose"
6val fromRGB = colorNames.getName(224, 224, 255) // "Stoic White"
7val fromColor = colorNames.getName(Color(255, 219, 240)) // "Silky Pink"
C# support is provided by: vycdev/ColorNamesSharp See the repository for more details; basic usage is below:
The library is available as a nuget package
1ColorNames colorNames = new ColorNamesBuilder() 2 .Add("Best Blue", "#3299fe") // Add your own custom colors 3 .LoadDefault() // Load the default color list 4 .AddFromCsv("path/to/your/colorlist.csv") // Add a custom color list from a csv file 5 .Build(); // Get a new ColorNames instance that includes all the colors you've added
1NamedColor customNamedColor = new("Custom Named Color", 50, 153, 254); 2 3// You can directly get the name of the color as a string 4string colorNameFromHex = colorNames.FindClosestColorName("#facfea"); // Classic Rose 5string colorNameFromRgb = colorNames.FindClosestColorName(224, 224, 255); // Stoic White 6string colorNameFromNamedColor = colorNames.FindClosestColorName(customNamedColor); // Best Blue 7 8// Or similarly you can get the NamedColor object 9NamedColor namedColorFromHex = colorNames.FindClosestColorName("#facfea"); // Classic Rose 10NamedColor namedColorFromRgb = colorNames.FindClosestColorName(224, 224, 255); // Stoic White 11NamedColor namedColorFromNamedColor = colorNames.FindClosestColorName(customNamedColor); // Best Blue 12 13// Or a random color 14NamedColor randomColor = colorNames.GetRandomNamedColor();
Item | Expenditure |
---|---|
Logo by Metafizzy | 800 |
Item | Expenditure |
---|---|
Color Name API Server | 264.60/year |
color.pizza domain name | 36.16/year |
Cloudflare PRO Plan | 240/year |
Verena the naming overlord , Jess the name wizard , Syl , Stephanie Stutz , Simbiasamba , Jason Wilson , Inês João , Nick Niles , Qwhex , Ichatdelune , basgys , Shelina S. , Trevor Elia , cheesits456 , Sandhya Subram , BerylBucket , Jimmy Fitzback , TLZ , DarthTorus , Carrion , BlueChaos , nachtfunke , Sean Gibbons , Brantley Sibo , Jeff Bronks , Joseph Oloughlin , Nathan Swift , Abra Giddings , Iraj Nelson
We are committed to fostering an inclusive and respectful environment. We actively remove any offensive, racist, or protected brand names from our list. While we strive to screen out such names, some may inadvertently remain. If you encounter any, please let us know so we can address them promptly.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More