31 packages found

Relative luminance formula

published 2.1.0 3 months ago
M
Q
P

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.

published 0.1.9 a year ago
M
Q
P

bare-bones color luminance functions

published 2.1.0 9 years ago
M
Q
P

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

published 1.2.0 5 years ago
M
Q
P

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

published 0.0.1 a year ago
M
Q
P

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

published 0.0.1 a year ago
M
Q
P

Utility functions for working with colors in adherence to WCAG 2.1 guidelines.

published 1.0.5 a month ago
M
Q
P

Get relative luminance from a color string.

published 1.0.0 4 years ago
M
Q
P

Evaluate if a to colors have sufficient contrast to pass WCAG requirements.

published 0.2.1 4 years ago
M
Q
P

Change the hue of a color without changing the relative luminance

published 1.0.0 8 years ago
M
Q
P

Calculate the color in an array of colors that gives the highest contrast to another color.

published 0.3.1 4 years ago
M
Q
P

Colour transformation utilities

published 1.0.1 9 years ago
M
Q
P

Calculate contrast ratio between two CSS color strings.

published 0.2.1 4 years ago
M
Q
P

calculate relative luminance

published 2.0.1 5 years ago
M
Q
P

Color converter for JavaScript/TypeScript

published 1.2.2 8 months ago
M
Q
P

Lightweight (no dependencies) and fast color brightness detector built with Flow Types.

published 1.0.1 5 years ago
M
Q
P

Convert RGB to grayscale

published 1.0.3 9 years ago
M
Q
P

Tools for collections of colors

published 0.0.2 a year ago
M
Q
P

For a given color, find a contrasting color (not optimal).

published 1.1.2 2 years ago
M
Q
P

Reads luminance and histogram data from JPEG images (based on Bill Yeh's pixelr)

published 0.2.1 7 years ago
M
Q
P