Search results
39 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
calculate relative luminance
APCA: the Accessible Perceptual Contrast Algorithm, a modern contrast method that improves readability contrast on self-illuminated displays. Developed for the W3C's WCAG 3 and other standards.
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
A utility library for calculating luminance, contrast ratio, and appropriate contrast colors to ensure web accessibility.
Calculate contrast ratio between two CSS color strings.
Get relative luminance from a color string.
The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.
Relative luminance formula
Utility functions for working with colors in adherence to WCAG 2.1 guidelines.
- wcag
- wcag-2.1
- accessibility
- accessible
- color
- colors
- contrast
- contrast-ratio
- luminance
- luminosity
- suggestion
- generator
bare-bones color luminance functions
Lightweight (no dependencies) and fast color brightness detector built with Flow Types.
Calculate the color in an array of colors that gives the highest contrast to another color.
A package based on WCAG 2.0 to easily check contrast ratio.
Super simple color manipulation using getters and setters
A React hook for using luminance,support React18
Calculate theme contrast based on canvas image data
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.
Convert RGB to grayscale
Library for converting colour codes and manipulating relative luminance and contrast ratio
- colour
- color
- contrast
- contrast ratio
- luminance
- lightness
- brightness
- saturation
- hue
- chroma
- chromator
- colour conversion
Calculate theme contrast based on canvas image data