112 packages found
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.
Core module for image-filter
colorParsley() • a lightweight yet versatile color parsing function with no dependencies. Takes various color strings, numbers, or objects, and turns them into simple arrays. Bonus utilities colorToHex() and colorToRGB() included
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
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.
Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).
- accessibility
- background
- black
- bright
- brighten
- brightness
- chroma
- color
- colors
- contrast
- convert
- css
- dark
- darken
- View more
Converts hex color to rgb and calculates appropriate corresponding foreground.
This is an accessibility validator based on WCAG 2.0 standard for checking the color contrast.
vivid colors that stick since 2018
- prefers-contrast
- color palette
- color scheme
- color system
- colorful
- contrast
- palette
- colours
- colors
- colour
- color
- vivid
- neon
- vibe
Color combination contrast tester
Small library to apply a contrast transformation to a image
JavaScript module to use black or white font according to the given background color
Usefull React hooks set
Calculate contrast ratio between two CSS color strings.
Convert colors between RGB, HEX, HSL, HWB, LAB, LCH, and more
a vanilla js function that takes in an array of colors and returns the wcag contrast scors of all of their combinaations
A selection of a11y helpful functions for working with HEX colors.
evaluate the wcag color contrast score for two colors