8 packages found
Evaluate if a to colors have sufficient contrast to pass WCAG requirements.
Calculate the color in an array of colors that gives the highest contrast to another color.
Calculate contrast ratio between two CSS color strings.
Utility functions for working with colors in adherence to WCAG 2.1 guidelines.
Get the contrast ratio and WCAG score between common CSS color types.
SafeColor generates accessible colors that compiles with WCAG success criteria 1.4.3 (or any contrast ratio of your choice). It can generate either a random color that is contrast safe with a given color, or a consistent color for a given string.
Contrast Correct allows you to take arbitrary colors and modify them to be increase their contrast against any background.