AlainGourves / contrast-ratio

Colors' Contrast Ratio Checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen capture

Contrast ratio checker

Given a background and a text colors, this computes their contrast ratio according to WCAG 2.0 formula, ranging from 1:1 (no contrast, e.g., a color compared to itself) to 21:1 (maximum contrast, obtainable by comparing black and white).

On the canvas, the stripped zone overlays the colors where the contrast ratio is inferior to the recommended minimum.

The white little circle marks the currently selected background color.

Colors can be changed either via their respective color picker, or, for the background color, by clicking on the color chart.

Dropdown menu let you select different color blindness to simulate on the sample zone.

Installation

First:

npm install

And then:

npm start

Libraries

About

Colors' Contrast Ratio Checker


Languages

Language:JavaScript 99.6%Language:SCSS 0.3%Language:HTML 0.1%