27 packages found
Convert RGB to grayscale
helper function for WCAG contrast criterion
🐻 fuzzy image diff'ing for the terminal
Calculate contrast ratio between two CSS color strings.
Helps to determine what color of text goes best for a given background, light or dark (and vice versa).
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.
A lightweight library for color calculation and generation