get-contrast-ratio-plus (npm): This package could get the contrast ratio between two colors, one color & the main color of an image, or the top-2 main colors of an image.
Keywords: pixels|main|color|canvas|contrast|ratio