Search results
37 packages found
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
Методы для работы с цветом и его компонентами
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.
Color space based on human perception
For a given color, find a contrasting color (not optimal).
helper function for WCAG contrast criterion
Compare colors to one another. Especially useful for validating color input fields.
Delta Phi Star is a general purpose method of determining perceptual lightness contrast developed by Andrew Somers (Myndex Research), and is a sibling of APCA and SACAM. It is a simplified method using easily invertible standardized maths, however it lack
Get relative luminance from a color string.
Super simple color manipulation using getters and setters
Colour transformation utilities
Tools for collections of colors
A React hook for using luminance,support React18
Calculate contrast ratio between two CSS color strings.
A lightweight library for color calculation and generation
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)