Skip to content

patchan/contrast-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contrast-checker

crates.io

A simple Rust-based CLI tool for calculating the contrast ratio between two colours.

Colour contrast ratio is calculated based on WCAG 2.0 guidelines.

Installation

If you have Rust installed, you can run

cargo install --path .

Usage

You can calculate the contrast between two colours by using:

contrast-checker <colour1> <colur2>

colour1 and colour2 are entered as a Hex code (i.e. #ffffff) or comma separated RGB list (i.e. 255,255,255). The # for Hex code is optional.

For example:

contrast-checker #ffffff 255,255,255

About

Rust-based CLI tool for calculating the contrast ratio between two colours

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages