IS Contrast Checker
Take a set color palette and get contrast values for every possible combination – useful for finding safe color combinations with predefined colors and includes pass/fail scores for the WCAG accessibility guidelines.
Getting Started
yarn add is-contrast-checker
Usage
Pass an array of color strings or an object with color strings as values.
; const colors = red: '#f00' green: '#008000' white: '#fff' const result =
Returns an array of colors with combinations for all other colors and their WCAG contrast values.
MIT License