RGB2HEX [js] Convert rgb to hex. Install npm install kc-rgb2hex Use var rgb2hex = require('kc-rgb2hex'); var hex = rgb2hex(255, 255, 255); console.log(hex);