Skip to content

About

Command line tool to check the contrast between two colours against WCAG standards

Topics

Resources

Code of conduct

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

Colour Contrast Checker CLI

Command line tool to check the contrast between two colours against WCAG standards

Install

npm install -g colour-contrast-cli
# or
yarn add --global colour-contrast-cli

Usage

Usage
  $ contrast black white

Options
  --ratio, -r Show only contrast ratio
  --grades, -g Show only WCAG grades

Examples
  $ contrast black white
  $ contrast '#000000' '#ffffff'
  $ contrast  0,0,0 255,255,255

Example Output

Example output of Colour Contrast Checker CLI

Related projects

About

Command line tool to check the contrast between two colours against WCAG standards

Topics

Resources

Code of conduct

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages