Find the nearest Cyberscape Standard color from RGB or HEX.
# Using npm
npm install --save cscape/stdcolor
# Using yarn
yarn add cscape/stdcolor
const StdColor = require('@cyberscape/stdcolor')
// Absolute red
console.log(StdColor(255, 0, 0))
// Hex colors
console.log(StdColor('#f00'))
Returns: An RGB array of numbers with the closest matched values.
Returns: An RGB array of numbers with the closest matched values.
MIT Β© Cyberscape.