Search results
37 packages found
The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.
A utility library for calculating luminance, contrast ratio, and appropriate contrast colors to ensure web accessibility.
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
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
Allows you to control Hue, Saturation, and Relative Luminance as if it where a color space. Inputs are the Hue, Saturation, and Relative Luminance of a color, and output is an array of RGB values ranging from 0 to 1, 0 to 255, and a string containing the
Relative luminance formula
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
A package based on WCAG 2.0 to easily check contrast ratio.
bare-bones color luminance functions
Lightweight (no dependencies) and fast color brightness detector built with Flow Types.
Color converter for JavaScript/TypeScript
🐻 fuzzy image diff'ing for the terminal
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
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.
Change the hue of a color without changing the relative luminance
Convert RGB to grayscale
Calculate the color in an array of colors that gives the highest contrast to another color.
Real World Color Modifications
- color
- colour
- css
- focus
- highlight
- hover
- hsl
- javascript
- luminosity
- luminance
- theory
- palette
- perceived
- perception
- View more
See Stars • a lightweight set of utilities to take an sRGB or displayP3 color, and extract the CIE Y relative luminance, and then convert to CIE L* (perceptual lightness). Takes RGB colors as simple arrays (as created with colorParsley). Bonus utilities t