accessible-colors
Utility functions for working with colors in adherence to WCAG 2.1 guidelines.
Utility functions for working with colors in adherence to WCAG 2.1 guidelines.
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.
For a given color, find a contrasting color (not optimal).
A package based on WCAG 2.0 to easily check contrast ratio.
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
Helps to determine what color of text goes best for a given background, light or dark (and vice versa).
Library for converting colour codes and manipulating relative luminance and contrast ratio
A React hook for using luminance,support React18
helper function for WCAG contrast criterion
Evaluate if a to colors have sufficient contrast to pass WCAG requirements.
Compare colors to one another. Especially useful for validating color input fields.
Relative luminance formula
Color converter for JavaScript/TypeScript
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
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