Search results

152 packages found

Convert colors between RGB, HEX, HSL, HWB, LAB, LCH, and more

published version 2.0.0, 6 years ago15 dependents licensed under $CC0-1.0
5,174,618

Modify colors using the color-mod() function in CSS

published version 4.1.1, 6 months ago38 dependents licensed under $CC0-1.0
5,178,957

WCAG Contrast Utils is a TypeScript library for calculating color contrast ratios and checking WCAG 2.1 compliance. Ensure your web designs meet accessibility standards with easy-to-use functions for developers and designers.

published version 1.0.1, 3 months ago0 dependents licensed under $MIT
986,863

evaluate the wcag color contrast score for two colors

published version 3.0.0, 5 years ago133 dependents licensed under $BSD-2-Clause
292,532

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 version 0.1.9, 3 years ago19 dependents licensed under $Limited W3 License
98,640

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

published version 0.1.8, 3 years ago9 dependents licensed under $AGPL v3
98,573

JavaScript module to use black or white font according to the given background color

published version 11.1.0, 3 years ago38 dependents licensed under $MIT
72,111

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).

published version 1.0.1, 4 years ago8 dependents licensed under $ISC
33,231

This is an accessibility validator based on WCAG 2.0 standard for checking the color contrast.

published version 2.1.0, 4 years ago18 dependents licensed under $Apache-2.0
47,272

A utility library for calculating luminance, contrast ratio, and appropriate contrast colors to ensure web accessibility.

published version 1.1.0, 8 months ago0 dependents licensed under $MIT
21,272

Get the contrast ratio and WCAG score between common CSS color types.

published version 3.0.0, 4 years ago22 dependents licensed under $MIT
22,059

WCAG 2.0 AA contrast checker for DOM elements

published version 1.0.2, 8 years ago2 dependents licensed under $MIT
12,736

Calculate contrast ratio between two CSS color strings.

published version 0.2.1, 6 years ago9 dependents licensed under $GPL-3.0
6,937

Color combination contrast tester

published version 1.0.5, 10 years ago11 dependents licensed under $MIT
5,659

Elegant UI Kit and reusable components for building mobile-first, responsive webistes and web apps

published version 1.5.19, a year ago26 dependents licensed under $SEE LICENSE IN license.pdf
5,415

A simple utility package for working with WCAG 2.2/3.0 color contrasts

published version 0.2.0, 3 years ago0 dependents licensed under $MIT
5,586

Get relative luminance from a color string.

published version 1.0.0, 5 years ago2 dependents licensed under $GPL-3.0
7,847

A JS library for Color Conversions, Manipulations, Harmony Generations, Accessibility Analysis and Parsing.

published version 1.4.2, 9 months ago0 dependents licensed under $MIT
4,537

Color Check is a very tine library for checking your foreground and backgorunds colors against the WCAG2 color compliance standard.

published version 0.0.2, 9 years ago2 dependents licensed under $MIT
3,228

The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.

published version 1.0.3, 14 days ago0 dependents licensed under $MIT
4,830