Search results
41 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
A utility library for calculating luminance, contrast ratio, and appropriate contrast colors to ensure web accessibility.
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.
Calculate contrast ratio between two CSS color strings.
The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.
Calculate the color in an array of colors that gives the highest contrast to another color.
Calculate theme contrast based on canvas image data
A package based on WCAG 2.0 to easily check contrast ratio.
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.
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
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
helper function for WCAG contrast criterion
calculate relative luminance
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
Color utilities
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
Relative luminance formula
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
Get relative luminance from a color string.
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