24 packages found
Detects if a hex color is dark or light. It is based on the w3 documentation for color luminance: https://www.w3.org/TR/WCAG20/#relativeluminancedef
bare-bones color luminance functions
Get relative luminance from a color string.
Методы для работы с цветом и его компонентами
Evaluate if a to colors have sufficient contrast to pass WCAG requirements.
- wcag
- color
- contrast
- luminance
- contrast-ratio
- accessibility
- a11y
- relative-luminance
- color-contrast
- text-legibility
Change the hue of a color without changing the relative luminance
Lightweight (no dependencies) and fast color brightness detector built with Flow Types.
Compare colors to one another. Especially useful for validating color input fields.
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.
Calculate the color in an array of colors that gives the highest contrast to another color.
For a given color, find a contrasting color (not optimal).
Calculate contrast ratio between two CSS color strings.
Color space based on human perception
Colour transformation utilities
A React hook for using luminance,support React18
🐻 fuzzy image diff'ing for the terminal
Helps to determine what color of text goes best for a given background, light or dark (and vice versa).
Reads luminance and histogram data from JPEG images (based on Bill Yeh's pixelr)
A lightweight library for color calculation and generation