This library extract proeminent colors from the image, and return the hex code then.
await Proeminent(sourceImage);
returns ['#FFF000', '#000000', '#350BEF']
Install the module via npm or yarn
# For NPM
npm install proeminent.js
# For Yarn
yarn add proeminent.js