Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
color-name-list
Advanced tools
A handpicked list of 30242 unique color names from various sources and thousands of curated user submissions.
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 | Name Sources | Latest Color Names | Sponsors
The aim of this project is to create a list of color names as large as possible, while keeping a good name quality. We've merged various lists, modified the names when there were duplicates with different hex values, and shifted the colors a bit when there were identical colors with different names.
via form ๐ / or twitter ๐ฆ
Make sure to read the naming rules before you contribute!
~0.18% of the RGB color space
When coming up with new color names, it is vital to know what spots in a
certain color-space are crowded and where there is still room for new colors.
For example: Our API returns the closest RGB
color to a given HEX
value.
To avoid too many colors snapping to the same name, we aim to distribute the
colors evenly in the color space: Visualization
Size Warning (1.15 MB): If you are doing this in the browser, consider using the public rest API
npm 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 make it easier to access the names, we offer a free and public Rest API that allows you to access all the color names and names from other publicly available name lists. You can find the full API code and documentation in this repository.
https://api.color.pizza/v1/?values=00f,f00,f00&list=bestOf
The API is free to use and has no limitations. But if your app/site is commercial and causes excessive traffic, I might contact you to become a sponsor.
Feel free to deploy it yourself, it is very easy to host/deploy on heroku and has no dependencies Color-Name-API
Size Warning (1.15 MB): If you are doing this in the browser, consider using the public rest API
import { colornames } from 'color-name-list';
let someColor = colornames.find(color => color.hex === '#ffffff');
console.log(someColor.name); // => white
let someNamedColor = colornames.find(color => color.name === 'Eigengrau')
console.log(someColor.hex); // => #16161d
Since there are 16777216 possible RGB colors, you might use a library such as nearest-color or ClosestVector to help you find the the closest named color.
import nearestColor from 'nearest-color';
import { colornames } from 'color-name-list';
// nearestColor need objects {name => hex} as input
const colors = colornames.reduce((o, { name, hex }) => Object.assign(o, { [name]: hex }), {});
const nearest = nearestColor.from(colors);
// get closest named color
nearest('#f1c1d1'); // => Fairy Tale
Note: If you are looking for something visually more accurate, you could use DeltaE or use the above snippet, but using ciecam02 instead of RGB.
npm install && npm run build
See package.json for more.
Java/Kotlin usage is maintained through this library: UwUAroze/Color-Names. Additional info can be found there, but basic usage is outlined below:
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("me.aroze:color-names:1.0.2")
}
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>me.aroze</groupId>
<artifactId>color-names</artifactId>
<version>1.0.2</version>
</dependency>
public ColorNames colorNames = new ColorNameBuilder()
.loadDefaults()
.build();
String fromHex = colorNames.getName("#facfea"); // "Classic Rose"
String fromRGB = colorNames.getName(224, 224, 255); // "Stoic White"
String fromColor = colorNames.getName(new Color(255, 219, 240)); // "Silky Pink"
val colorNames = ColorNameBuilder()
.loadDefaults()
.build()
val fromHex = colorNames.getName("#facfea") // "Classic Rose"
val fromRGB = colorNames.getName(224, 224, 255) // "Stoic White"
val fromColor = colorNames.getName(Color(255, 219, 240)) // "Silky Pink"
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
In an effort to create a more inclusive and respectful environment, we strive to remove all offensive and racist names, as well as protected brand names, from our list. While we do our best to screen out such names, some may still slip through. If you come across any such names, please let us know so that we can remove them promptly.
FAQs
long list of color names
The npm package color-name-list receives a total of 20,956 weekly downloads. As such, color-name-list popularity was classified as popular.
We found that color-name-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.