Details
Color names can have varying levels of disagreement, with orange being easy and fuchsia being difficult. Different sources may assign different colors to the same name. ResourceFunction["Swatch"] returns one selected digital value for each name.
Color names are matched without regard to capitalization, spaces, hyphens, punctuation or diacriticals.
ResourceFunction["Swatch"] allows various properties values, prop:
| "Hex" | hexadecimal RGB specification |
| "CMYK" | color converted to CMYKColor |
| "Source" | list of sources that attest the named color |
| "ValueSource" | source used for the selected RGB value |
The database contains historical, dictionary, web, survey, manufacturer and specialist color names:
| Key | Source | Colors |
| ISCC | ISCC-NBS Dictionary of Color Names | 5089 |
| M&P | Maerz and Paul — A Dictionary of Color | 3014 |
| Plochere | Plochere Color System | 1238 |
| Ridgway | Ridgway — Color Standards and Color Nomenclature | 1076 |
| XKCD | XKCD Color Survey | 923 |
| Taylor | Taylor, Knoche and Granville — Descriptive Color Names Dictionary | 669 |
| Repertoire | Répertoire de couleurs | 525 |
| CNL | Color Name List | 379 |
| Repertoire-scan | Répertoire de couleurs — digitized plates | 336 |
| RHS | Royal Horticultural Society colour references | 198 |
| Hort | Horticultural colour references | 197 |
| TCCA | Textile Color Card Association | 182 |
| CSS | CSS Color Module Level 4 | 148 |
| Wiki-geologic | Wikipedia — Geologic time scale (ICS colours) | 181 |
| Werner | Werner's Nomenclature of Colours | 110 |
| MW | Merriam-Webster | 74 |
| FedPaint | ISCC-NBS ready-mixed paint names | 65 |
| Derwent | Derwent colour charts | 56 |
| Saccardo | Saccardo — Chromotaxia | 50 |
| Saccardo-scan | Saccardo — digitized plates | 49 |
| Collins | Collins English Dictionary | 48 |
| WNW | Webster's New World College Dictionary | 44 |
| Werner-scan | Werner — digitized plates | 41 |
| Cambridge | Cambridge Dictionary | 35 |
| Faber | Faber-Castell colour chart | 29 |
| Crayola | Crayola colour list | 24 |
| Stabilo | STABILO CarbOthello colour chart | 23 |
Nearest-color matching uses CIELAB by default. CIELAB distance generally corresponds more closely to perceived color difference than component-wise RGB distance.
More than one name may have the same RGB value (grey and gray). Such names have equal color distance and may appear adjacent in nearest-color results.
CMYK results are computed conversions. They are not authoritative printing specifications and may vary from conversions made using a particular printer or
ICC profile.
For some specific hex colors, the
ISCC lists a hundred or more color names. To the extent possible, these clashes have been resolved to distinct colors or demoted to alternate names.