scratch-quantize Quantize a HEX colour to the closest colour that is supported by Scratch. Install npm install scratch-quantize Usage const scratchQuantize = require("scratch-quantize"); scratchQuantize("#FFD800");//=> "FFE600" API scratchQuantize(input) input Type: string The HEX code to quantize.