Coder Social home page Coder Social logo

meodai / color-names Goto Github PK

View Code? Open in Web Editor NEW
2.3K 27.0 183.0 91.9 MB

Large list of handpicked color names ๐ŸŒˆ

Home Page: https://meodai.github.io/color-names/

License: MIT License

JavaScript 92.31% Shell 4.31% Smarty 3.38%
colors color naming colour colours palette dataset rgb-color dictionary

color-names's Introduction

Color Names

Actions Status GitHub release npm version npm name count github sponsor count

A handpicked list of 30244 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 | Name Sources | Latest Color Names | Sponsors

About ๐Ÿ“‹

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.

Explore ๐ŸŒ

Color Name Submission ๐Ÿ’Œ

via form ๐ŸŒˆ / or twitter ๐Ÿฆ

Make sure to read the naming rules before you contribute!

Color Count: 30244 ๐ŸŽ‰

~0.18% of the RGB color space

3d representation of color distribution in RGB Space (Preview image of link above)

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

Usage ๐Ÿ“–

Node.js Installation ๐Ÿ“ฆ

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

CDN ๐ŸŒ

All Names ๐Ÿ“š

JSON / JSON.min / CSV / YML / JS / XML / HTML / SCSS

Best of Names subset ๐Ÿ†

JSON / JSON.min / CSV / YML / JS / XML / HTML / SCSS / CSS

API ๐Ÿƒ

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.

API Example Call Usage

https://api.color.pizza/v1/?values=00f,f00,f00&list=bestOf

API Disclaimer

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

Usage JS โŒจ

Size Warning (1.15 MB): If you are doing this in the browser, consider using the public rest API

Exact Color

import { colorNameList } from 'color-name-list';

let someColor = colorNameList.find(color => color.hex === '#ffffff');
console.log(someColor.name); // => white

let someNamedColor = colorNameList.find(color => color.name === 'Eigengrau')
console.log(someColor.hex); // => #16161d

Closest Named Color

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 { colorNameList } from 'color-name-list';

// nearestColor need objects {name => hex} as input
const colors = colorNameList.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.

Building ๐Ÿ”จ

npm install && npm run build

See package.json for more.

Sources ๐Ÿ—’

Sources: Names ๐Ÿ“‡

Contributors ๐Ÿฆ‘

Costs & Sponsors

Sponsors

Gold

Silver

Bronze

Project Costs USD

One-Time

Item Expenditure
Logo by Metafizzy 800

Periodic

Item Expenditure
Color Name API Server 264.60/year
color.pizza domain name 36.16/year
Cloudflare PRO Plan 240/year

Color Namers

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

Disclaimer ๐Ÿ‘ฎ๐Ÿพโ€

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.

Latest Color Names ๐Ÿ”–

New colors

color-names's People

Contributors

au2232 avatar basgys avatar berylbucket avatar brunnerlivio avatar caub avatar cheesits456 avatar dependabot[bot] avatar diluno avatar dsm0 avatar fabstei avatar floedelmann avatar gaurav10000 avatar github-actions[bot] avatar jacebenson avatar joinemm avatar leereilly avatar meodai avatar moofemp avatar nachtfunke avatar nirazul avatar nmattia avatar qwhex avatar soelen avatar tajmone avatar thelastzombie avatar tomepsilon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

color-names's Issues

return colors as array instead of object for api calls

atm the api return an object for the colors prop, but it we want to make operations on the list you will have to first flatten the object then push it to an array.

while it would be much better if the colors prop was array of objects, this way we can start to use it like any other api.

and here is a ref https://stackoverflow.com/questions/8322643/how-to-handle-multiple-json-objects-into-array

and an example
url: https://color-names.herokuapp.com/v1/27ae60,16a085

{
  "status": "names for '27ae60, 16a085' returned",
  "colors": {
    "#27ae60": {
      "name": "Island Green",
      "hex": "#2bae66",
      "rgb": {
        "r": 43,
        "g": 174,
        "b": 102
      },
      "isExactMatch": false
    },
    "#16a085": {
      "name": "Flamboyant",
      "hex": "#129c8b",
      "rgb": {
        "r": 18,
        "g": 156,
        "b": 139
      },
      "isExactMatch": false
    }
  }
}

instead it could be

{
  "status": "names for '27ae60, 16a085' returned",
  "colors": [
    {
      "original": "#27ae60",
      "name": "Island Green",
      "closest": "#2bae66",
      "rgb": {
        "r": 43,
        "g": 174,
        "b": 102
      },
      "isExactMatch": false
    },
    // ...
  ]
}

Improve name quality

Some paint brands were lazy and added the whole palette they already had with prefixes like "hint of" or "light" depending on how much white is in it.

While this works for some names, it just sounds plain weird on others:

  • Light Pale Icelandish
  • Light Mauve Pansy
  • Hint of Amethyst Ice
  • Hint of Amourette
  • Hint of Angel Kiss
  • Hint of Angel's Face

etc.

I would like to get rid of those for the 4.0 release

Replace uninspired color-names

I have identified some color-names that we imported from pain-brands, that are just lighter version of other colors, most of them sound wrong but in the best cases just sound uninspired.

Let me know in this issue, or by tweeting to @color_parrot (@color_parrot Some Fancy Name #ff00ff)

Bright Aqua	#0bf9ea
Bright Blue	#0165fc
Bright Blue Violet	#8a2be2
Bright Bluebell	#9da7cf
Bright Bluebonnet	#90b3c2
Bright Bronze	#a05822
Bright Brown	#533b32
Bright Camouflage	#1cac78
Bright Cerulean	#1dacd6
Bright Chambray	#adbfc8
Bright Chartreuse	#dfff11
Bright Clove	#efcf9b
Bright Cobalt	#385d8d
Bright Cyan	#41fdfe
Bright Delight	#cd5b26
Bright Dusk	#eee9f9
Bright Ecru	#feffca
Bright Eggplant	#5a4e88
Bright Gold	#cf9f52
Bright Greek	#3844f4
Bright Green	#66ff00
Bright Grey	#ebecf0
Bright Idea	#ecbe63
Bright Indigo	#6f00fe
Bright Khaki	#f1e78c
Bright Lady	#9f3645
Bright Laughter	#f0edd1
Bright Lavender	#bf94e4
Bright Lettuce	#8dce65
Bright Light Green	#2dfe54
Bright Lilac	#d891ef
Bright Lime	#87fd05
Bright Lime Green	#65fe08
Bright Loam	#c1b9aa
Bright Magenta	#ff08e8
Bright Manatee	#979aaa
Bright Mango	#ff8830
Bright Marigold	#ff8d00
Bright Maroon	#c32148
Bright Midnight	#011993
Bright Midnight Blue	#1a4876
Bright Mint	#98ff98
Bright Nautilus	#225869
Bright Navy Blue	#1974d2
Bright Nori	#2d5e22
Bright Ocarina	#f0e8da
Bright Olive	#9cbb04
Bright Orange	#ff7034
Bright Pink	#fe01b1
Bright Purple	#be03fd
Bright Red	#ff000d
Bright Rose	#c51959
Bright Saffron	#ffcf09
Bright Sage	#d1ceb4
Bright Scarlet	#fc0e34
Bright Sea Green	#9fe2bf
Bright Sepia	#b1aa9c
Bright Sienna	#d68a59
Bright Sky Blue	#02ccfe
Bright Spark	#76c1e1
Bright Star	#dde2e6
Bright Sun	#ecbd2c
Bright Teal	#01f9c6
Bright Turquoise	#08e8de
Bright Ube	#d19fe8
Bright Umber	#826644
Bright Violet	#ad0afd
Bright White	#f4f5f0
Bright Yarrow	#face6d
Bright Yellow	#fffd01
Bright Yellow Green	#9dff00
Bright Zenith	#757cae
Light Amourette	#d4d3e0
Light Angel Kiss	#dad4e4
Light Angora Blue	#c9d4e1
Light Aroma	#decfd2
Light Ballet Blue	#c2d1e2
Light Bassinet	#ded0d8
Light Bathing	#abd5dc
Light Bleaches	#d5d4d0
Light Blossom Time	#ecddd6
Light Blue Bayou	#cdd2de
Light Blue Cloud	#d2d3e1
Light Blue Glint	#a8d3e1
Light Blue Grey	#b7c9e2
Light Blue Ice	#b7d2e3
Light Blue Mist	#bed7f0
Light Blue Sloth	#c6dde4
Light Blue Veil	#c0d8eb
Light Bluish Water	#a4dbe4
Light Bobby Blue	#add2e3
Light Bright Spark	#94d0e9
Light Budgie Blue	#9ed6e8
Light Bunny Soft	#deced1
Light Cameo Blue	#c6d4e1
Light Candela	#c9d2df
Light Cargo River	#dbd9c9
Light Carob	#f9dbcf
Light Carolina	#d8f3d7
Light Carrot Flower	#d8decf
Light Celery Satin	#dbe2cc
Light Celery Stick	#d8f2dc
Light Chintz	#e0d5c9
Light Christobel	#dfd3ca
Light Cipollino	#d5dad1
Light Continental Waters	#afd5d8
Light Cool Crayon	#c3ece9
Light Cornflower Blue	#93ccea
Light Crushed Almond	#ddd7d1
Light Cuddle	#cbd7ed
Light Curd	#f9e9c9
Light Daly Waters	#c2e4e7
Light Dante Peak	#c6dedf
Light Daydreamer	#e2d9d2
Light Dedication	#fce9d5
Light Delphin	#9ed1e3
Light Deluxe Days	#a4d4ec
Light Detroit	#cddbdc
Light Dewpoint	#c4dadd
Light Drizzle	#a7aea5
Light Dry Lichen	#d4e3d7
Light Duck Egg Cream	#d5ebdd
Light Easter Rabbit	#d4ced1
Light Ecru	#e5deca
Light Eggshell Pink	#d9d2c9
Light Ellen	#ead5c7
Light Elusive Dream	#d8cdd3
Light Enchanted	#d6eadb
Light Fairy Pink	#f3ded7
Light Favourite Lady	#ead3e0
Light Featherbed	#c1d8eb
Light First Love	#fce6db
Light Fresh Lime	#e2f4d7
Light Freshman	#ecf4d2
Light Frost	#ede8d7
Light Frosty Dawn	#d7efd5
Light Frozen Frappe	#e6d2dc
Light Gentle Calm	#d2d9cd
Light Ghost Town	#d4cfcc
Light Ghosting	#d7d3ca
Light Ghostly Green	#e2e1c8
Light Glaze	#c0b5aa
Light Green Alabaster	#d5d8c9
Light Green Ash	#d7ddcd
Light Green Frost	#dce0cd
Light Green Glint	#e5f4d5
Light Green Veil	#e8f4d2
Light Green Wash	#d4e6d9
Light Greenette	#e2f0d2
Light Gregorio Garden	#d7d4e4
Light Heaven Sent	#bacad4
Light Hindsight	#cdd6ea
Light Hint Of Lavender	#dccfce
Light Hog Bristle	#e5ddcb
Light Horizon Sky	#d0d2de
Light Hugo	#eddbd7
Light Ice Pack	#bbe4ea
Light Iced Aniseed	#d8ded0
Light Iced Lavender	#d0d4e3
Light Image Tone	#ccd0da
Light Imagine	#aed4d8
Light Instant	#e2d9d4
Light Issey-San	#dbe4d1
Light Jellyfish Blue	#acd6db
Light Karma	#bce6e8
Light Katsura	#d6ead8
Light Kiri Mist	#d3d2dd
Light Korila	#e0eed4
Light Lamb's Ears	#d6d9cb
Light Lavender Blush	#e3d2cf
Light Lavender Water	#ddd6e7
Light Ligado	#d9e0d0
Light Light Blush	#eed2d7
Light Light Green	#c8ffb0
Light Light Lichen	#d3e7dc
Light Lilac Crystal	#d7d2e2
Light Lime Sherbet	#d8e6ce
Light Limed White	#dbd5ce
Light Limpid Light	#dad1d7
Light Lip Gloss	#e7d9d4
Light Livingstone	#d8d7ca
Light Lost Lace	#d1f0dd
Light Lunette	#dcd5d3
Light Mahogany	#aa5511
Light Maiden's Blush	#f6ddce
Light Male	#e3dbd0
Light Marsh Fog	#d3e1d3
Light Marshmallow Magic	#f4dddb
Light Martian Moon	#d1efdd
Light Mauve	#c292a1
Light Meadow Lane	#cee1d9
Light Mint	#b6ffbb
Light Mint Green	#a6fbb2
Light Modesty	#ded5e2
Light Morality	#c4d9eb
Light Mosque	#d8cdd0
Light Mr Frosty	#b8d3e4
Light Mystified	#d6e4d4
Light Naked Pink	#e2d4e1
Light Nursery	#f4dcdc
Light Nut Milk	#e3d8d4
Light Objectivity	#cbd3e6
Light of New Hope	#eaf3d0
Light Olive	#acbf69
Light Opale	#c1e8ea
Light Opus	#dad7e8
Light Orchid	#e6a8d7
Light Orchid Haze	#d6cdd0
Light Oriental Blush	#e1d4e8
Light Otto Ice	#cde7dd
Light Pale Icelandish	#ccdfdc
Light Pale Lady	#d3cccd
Light Pale Lilac	#ced5e4
Light Pale Pearl	#d4cbce
Light Pale Tendril	#dbdacb
Light Pastel Green	#b2fba5
Light Pax	#d5d3e3
Light Pearl Ash	#dcd6d1
Light Pelican Bill	#e1ced4
Light Penna	#c8d4e7
Light Pensive	#d0d0d7
Light Periwinkle	#c1c6fc
Light Perk Up	#e0d5cd
Light Petite Pink	#f0d7d7
Light Pianissimo	#ecdbd6
Light Picnic Bay	#cde5de
Light Pink	#ffd1df
Light Pink Clay	#fedfdc
Light Pink Linen	#ddced1
Light Pink Pandora	#e9d3d5
Light Pink Polar	#d8c9cc
Light Pink Tone	#fad9da
Light Pipe Clay	#d8d6cc
Light Pistachio Tang	#e2dec8
Light Placid Blue	#c8d8e8
Light Pollinate	#ebe1cb
Light Poolside	#bee0e2
Light Porcelain	#e7dad7
Light Powder Blue	#c4d9ef
Light Powdered Granite	#d1d6eb
Light Pre School	#c5d0d9
Light Pretty Pale	#ead4e0
Light Puffball	#d9ced5
Light Pure Blue	#c2d2d8
Light Purity	#e0d5e9
Light Quaver	#cdded7
Light Quilt	#fde1d4
Light Radar	#c6d5ea
Light Raw Cotton	#ecdfca
Light Recuperate	#e7d8ea
Light Red	#f3d3d9
Light Relax	#caddde
Light Ridge Light	#c3d5e5
Light Roast	#615544
Light Rose Aspect	#f4d4d6
Light Rose Romantic	#f3dcd8
Light Salmon	#fea993
Light Salome	#ccf1e3
Light Salt Spray	#bbd3da
Light Sandbank	#dedcc6
Light Sandy Day	#e1dacf
Light Sea Breeze	#b7cdd9
Light Sea Cliff	#b9d4e7
Light Sea Spray	#abd6de
Light Sea-Foam	#a0febf
Light Seafoam Green	#a7ffb5
Light Security	#e0e9d0
Light Shell Haven	#f1e8ce
Light Shell Tint	#fce0d6
Light Shetland Lace	#e7dccf
Light Short Phase	#cbe8df
Light Shutterbug	#cef2e4
Light Silver Dollar	#d5dfd3
Light Silver Grass	#d4dbd1
Light Silverton	#cee3d9
Light Sky Babe	#a1d0e2
Light Sky Bus	#afcfe0
Light Sky Chase	#bad7dc
Light Skyway	#c2e3e8
Light Slipper Satin	#cfd1d8
Light Snow Goose	#d1e2d8
Light Soft Celadon	#cedcd4
Light Soft Fresco	#cfe0d7
Light Soft Kind	#dcddcc
Light Spearmint Ice	#cfded7
Light Sprig Muslin	#e0cfd2
Light Spring Burst	#d6e8d5
Light Sprinkle	#e3e3d7
Light Stargate	#c7d2dd
Light Starlight	#cbd0d7
Light Starlight Blue	#c9e7e3
Light Stately Frills	#d2ccd1
Light Steel Blue	#b0c4de
Light Subpoena	#e4dad3
Light Supernova	#cde5e2
Light Tactile	#deedd4
Light Taupe White	#d5d0cb
Light Template	#bbd6ea
Light Thought	#e2d8d4
Light Tidal Foam	#bcd6e9
Light Time Travel	#c5d2df
Light Tinge Of Mauve	#dfd2d9
Light Tip Toes	#e1d0d8
Light Vandamint	#bfe7ea
Light Vanilla Ice	#b8ced9
Light Vanilla Quake	#d8d5d0
Light Vision	#dcd9eb
Light Wallis	#d4ccce
Light Washed Blue	#acdce7
Light Water Wash	#bfd5eb
Light Water Wings	#c2f0e6
Light Watermark	#b7dadd
Light Watermelon Milk	#e6dad6
Light Wavecrest	#b5d1df
Light Weathered Hide	#e0d4d0
Light Whimsy	#99d0e7
Light White Box	#cedcd6
Light Yellowish Green	#c2ff89
Light Youth	#ead7d5
Light Zen	#d1dbd2
Lighter Green	#75fd63
Lighter Purple	#a55af4
Lightest Sky	#e4eadf

The automated release is failing ๐Ÿšจ

๐Ÿšจ The automated release from the master branch failed. ๐Ÿšจ

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iโ€™m sure you can resolve this ๐Ÿ’ช.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those donโ€™t help, or if this issue is reporting something you think isnโ€™t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project โœจ

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

Cannot find module 'color-name-list'

I want to use this repo in a CLI made with TypeScript so I went ahead and added it via yarn:
yarn add color-name-list

Unfortunately when trying to use it I get the error:
Cannot find module color-name-list
I import it in the following way:
import namedColors from 'color-name-list';

I don't think it's about missing typescript types, that would be a different error.
Do you have an idea what could be causing this?

wrong hex code for existing color

The 'solid pink' color is shown as #85494c which is certainly not pink. The Wikipedia hex code is given as #c78b95 or #893843.

Not sure which one should be used ...

Add multi language support

I want to use this cool list of color names in an project where I need to translate german color names to hex values. So is it possible to add multi language support?

Maybe by exporting it in a way like:

{
  "en": [
    {"name":"red", "hex":"#ff0000"},
    {"name":"green", "hex":"#00ff00"},
    {"name":"blue", "hex":"#0000ff"}
  ],
  "de": [
    {"name":"rot", "hex":"#ff0000"},
    {"name":"grรผn", "hex":"#00ff00"},
    {"name":"blau", "hex":"#0000ff"}
  ] 
}

then you can use it like:

const namedColors = require('color-name-list');
const someEnColor = namedColors.en.find(color => color.name === "red");
// or
const someDeColor = namedColors.de.find(color => color.name === "rot");
console.log(someEnColor, someDeColor );

Visualization in README is broken

Problem

The Color distribution codepen link in the README appears to be broken. When I load it, I am met with a blank screen:

image

And the following error in the console:

OrbitControls.js:84 Uncaught TypeError: Cannot read property 'ROTATE' of undefined
    at new THREE.OrbitControls (OrbitControls.js:84)
    at init (pen.js:180)
    at pen.js:57

Solution

From this post I found that it's due to a version mismatch between the orbit controls and the three.js library. Updating the import link for three.js to the newest version fixed the problem.

https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js

And here you can see a working version.

I'd submit a pull request but seeing as this code isn't in the repository itself, I cannot! So hopefully this is good enough ๐Ÿ˜„

import some of the Apple system colours

These are directly from the Apple system color palette

#000000 - Black
#0433ff - Blue
#aa7942 - Brown
#00fdff - Cyan
#00f900 - Green
#ff40ff - Magenta
#ff9300 - Orange
#942192 - Purple
#ff2600 - Red
#fffb00 - Yellow
#ffffff - White

Le Corbusier color palette

Would love to get these Le Corbusier colors into the library: https://www.lescouleurs.ch/en/the-colours/63-colours/

After a search, I wasn't able to find hex values for the colors but in dev tools you can grab the RGB values.

Not sure if the colors or names are copyrighted but they are nice colors. Also don't want to duplicate if they are already in the library under different names.

Generate ICC color profile

Apparently there is a NamedColor profile nmcl in ISO 15076-1, vulgo ICC. I'm not sure how widespread its support and use are or how simple it would be to generate (e.g. with Little CMS), but it seems like a useful addition to me.

Add example using โ€œnearest colorโ€

The demo on CodePen is great as it takes any color input and returns a name, perfect!

But when I first tried the example code from this repo, I was disappointed, because I didnโ€™t realize, that the code was only returning a color name for exact matches.

I then noticed that the demo was using nearest-color.js. Maybe you can consider adding an example to the README.

At least, this is how Iโ€™m using it now. Thanks! :)

// import color name list
let namedColors = require('color-name-list');

// transform color array to map
let colors = {};

namedColors.forEach(function (color) {
  colors[color.name] = color.hex
})

// define nearestColor
let nearestColor = require('nearest-color').from(colors);

// get color
var namedColor = nearestColor("#ffcc00)

Can't install color-names using npm

On the latest update of `color-name-list', the package fails to be installed.

$ npm install color-name-list --save

npm ERR! path /Users/#####/#######/node_modules/color-name-list/bin/git-cz
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/#####/#######/node_modules/color-name-list/bin/git-cz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

color-names version: 3.8.0
Node: v8.5.0
NPM: v5.4.2
Operating system: macOS High Sierra
Severity: Blocker

.npm/_logs debug.log output:

39 silly doParallel refresh-package-json 8
40 silly refresh-package-json /Users/#####/#######/node_modules/color-name-list
41 silly doParallel preinstall 8
42 silly preinstall [email protected]
43 info lifecycle [email protected]~preinstall: [email protected]
44 silly doSerial build 8
45 silly build [email protected]
46 info linkStuff [email protected]
47 silly linkStuff [email protected] has /Users/#####/#######/node_modules as its parent node_modules
48 verbose linkBins [email protected]
49 verbose linkBins [ { 'git-cz': './bin/git-cz', commitizen: './bin/commitizen' },
49 verbose linkBins   '/Users/#####/#######/node_modules/.bin',
49 verbose linkBins   false ]
50 verbose linkMans [email protected]
51 verbose unlock done using /Users/#####/.npm/_locks/staging-f63b91558821f319.lock for /Users/#####/#######/node_modules/.staging
52 verbose stack Error: ENOENT: no such file or directory, chmod '/Users/#####/#######/node_modules/color-name-list/bin/git-cz'
53 verbose cwd /Users/#####/#######/
54 verbose Darwin 17.0.0
55 verbose argv "/usr/local/Cellar/node/8.5.0/bin/node" "/usr/local/bin/npm" "install" "color-name-list" "--save"
56 verbose node v8.5.0
57 verbose npm  v5.4.2
58 error path /Users/#####/#######/node_modules/color-name-list/bin/git-cz
59 error code ENOENT
60 error errno -2
61 error syscall chmod
62 error enoent ENOENT: no such file or directory, chmod '/Users/#####/#######/node_modules/color-name-list/bin/git-cz'
63 error enoent This is related to npm not being able to find a file.
64 verbose exit [ -2, true ]

Useful Links to Color Lists

Since I've searched for color-names lists in the past for my Name That Color project, I'm pasting here some links from my findings, hoping they might be useful.

This Issue could also be kept alive to allow more links to be contributed below.

The Color Thesaurus โ€” by Ingrid Sundberg

Unfortunately, the original page is no longer reachable due to the account being suspended, so I've provided a link via WaybackMachine.

When Ingrid Sundberg's published her Color Thesaurus it had quite a resonance, and it inspired various projects on GitHub. I'm linking a couple of them below.

Color-Thesaurus JavaScript

This is intended to be an extension of the color thesaurus from: http://ingridsnotes.wordpress.com/2014/02/04/the-color-thesaurus/

I am aiming to collapse things down to a single viewable grid with a drop down list for all the different categories of colors. Also it will include the hex values along with English names for the colors to help developers, and designers communicate clearly.

It is using Angular javascript framework which might be a bit overkill.

The New Defaults: A Sass Color Thesaurus

A Sass replacement for the standard CSS named color system. Provides more visually appealing hues for many CSS keywords; adds new colors with more relevant and easily remembered names. Inspired by Ingrid Sundbergโ€™s color thesaurus and the work of Adam Morse.

Multi-lingual Color Thesaurus

(unrelated to Ingrid Sundberg's Thesaurus)

License: CC-BY-NC-SA

We present a color thesaurus with over 9000 color names in ten different languages. Instead of using conventional psychophysical experiments, we use a statistical framework that is based on search results from Google Image Search...

This is an academic project, well documented and with software tools. Beware of the license terms though, as they might be incompatible with other licenses.

Neural-Network Generated Color Names

nique new colors [...] generated by a neural algorithm trained by Janelle Shane, an optics research scientist, who taught it to analyze patterns in colors and dream up new hues in the style of Sherwin-Williams.

I've found the list of color names artificially produced by IA quite interesting.

Intentional limit to sRGB?

The color submission form asks for a hex code, i.e. 8-bit RGB values. Are you intentionally not supporting named colors in wider gamuts? (Not that there were [m]any I'd know of.)

Rate Names

Not all Color-Names are great, I would like to add a rating from 1 - 3 to be able to generate only awesome names, or if you don't care just a lot of names. It might be ok to just have a boolean, like cool name: true / false

We might achieve this with some kind of public rating system

Add a tag document

create Name <-> tags csv
so one day it would be possible to only get nature related names, or only technical names and so on

New project using this list: https://hexy.io/

Hello,

Thank you so much for compiling and updating this list. Don't mean to impose but wanted to let you know about a project I built using your amazing color list: https://hexy.io/

I've been wanting a site with a massive amount of colors to browse and never found one I really liked so I built one myself. I couldn't have done it without this list so thank you again.

With the site you can browse all named colors from your list but also get info on any color including harmonies, color spaces, nearest named color, etc. In addition, you can save any color to Favorites and export your Favorites to an editable PDF. Hexy.io is great for exploring, creating palettes, and discovering new colors.

GitHub repo for the project is here: https://github.com/joshuaiz/hexy

This is an early alpha for the site so will be adding more features in the coming weeks including .svg export, accounts, saved palettes, and more.

I've given this project a shout out but if you'd like to be referenced differently or more prominently, by all means let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.