Converts percent value (between 0 and 1) to HEX color code (between green and red)
npm i percent-to-hex
const percentToHex = require('percent-to-hex');
percentToHex(1) // output: "#ff0000"
percentToHex(0.5) // output: "#ffff00"
percentToHex(0) // output: "#00ff00"
const percentToHex = require('percent-to-hex');
percentToHex([0.5,85,60]) // output: "#f0f042"