Gathering detailed insights and metrics for get-contrast-ratio
Gathering detailed insights and metrics for get-contrast-ratio
Gathering detailed insights and metrics for get-contrast-ratio
Gathering detailed insights and metrics for get-contrast-ratio
get-contrast
Get the contrast ratio and WCAG score between common CSS color types.
get-contrast-ratio-plus
This package could get the contrast ratio between two colors, one color & the main color of an image, or the top-2 main colors of an image.
get-relative-luminance
Get relative luminance from a color string.
get-color-utils
A lightweight utility library to calculate appropriate text color (`#000` or `#fff`) based on background HEX color. Provides WCAG-compliant contrast ratio evaluation with no React dependency.
Calculate contrast ratio between to CSS color strings.
Typescript
Module System
TypeScript (100%)
Built with Next.js • Fully responsive • SEO optimized • Open source ready
Total Downloads
471,045
Last Day
170
Last Week
2,926
Last Month
8,642
Last Year
95,287
10 Stars
98 Commits
1 Forks
1 Watchers
25 Branches
2 Contributors
Updated on Aug 06, 2025
Latest Version
0.2.1
Package Id
get-contrast-ratio@0.2.1
Unpacked Size
5.15 kB
Size
2.31 kB
File Count
12