colour-contrast-cli
v1.1.2
Published
Command line tool to check the contrast between two colours against WCAG standards
Downloads
6
Maintainers
Readme
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
Related projects
- Colour Contrast Checker Web App - Use the web app to check colour contrast as well as some other goodies such as saving colours.
- Colour Contrast Checker Chrome - Check the contrast of colours with ease while browsing through the web using my handy chrome extension.