men-color-namer
v1.0.0
Published
Name Every Color with Basic Color Names!
Readme
Men Color Namer
Javascript Package to Name Every Color with Basic Color Names, such as brown, black, white, etc. THIS ONE ACTUALLY WORKS!
Why men-color-namer?
If you use robertcoopercode/color-namer website with Basic (21) option, you'll see these results:
- ❌ #94842e -> GRAY
- ❌ #526a89 -> GRAY
- ❌ #361611 -> BLACK
Using men-color-namer:
- ✅ #94842e -> GREEN
- ✅ #526a89 -> BLUE
- ✅ #361611 -> BROWN
This package solves this by using 31902 color names from meodai/color-names, but all converted to basic names using AI. Now when you search for the nearest color, it works correctly.
Installation
npm install men-color-namerUsage
import { nameColor } from "men-color-namer";
const colorName = nameColor(54, 22, 17)
console.log(colorName); // brownTranslation
Example Translation to German:
const colorsTranslation = {
black: "schwarz",
blue: "blau",
cyan: "cyan",
green: "grün",
teal: "blaugrün",
turquoise: "türkis",
indigo: "indigo",
gray: "grau",
purple: "lila",
brown: "braun",
tan: "beige",
violet: "violett",
beige: "beige",
fuchsia: "fuchsie",
gold: "gold",
magenta: "magenta",
orange: "orange",
pink: "pink",
red: "rot",
white: "weiß",
yellow: "gelb"
};
console.log(colorsTranslation[colorName]);