Closest Color
Closest Color finds the closest color to any hex you type.
Install
Closest Color may be installed to the command line and then used as closestcolor
or ccolor
.
npm install -g closest-color
Usage
closestcolor ff3
# prints: Electric Yellow (#ffff33)
Options
name
closestcolor ff3 name
# prints: Electric Yellow
hex
closestcolor ff3 hex
# prints: #ffff33
contrast
closestcolor ff3 contrast
# prints: black
all
closestcolor ff3 all
# prints:
# name: Electric Yellow
# hex: #ffff33
# contrast: black