trying out
color-thief
.
dominantColor