Skip to content
A simple color contrast ratio checker that lives in your Windows system tray.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
.gitattributes
.gitignore
App.config
App.xaml
App.xaml.cs
ColorHelpers.cs
Contrastor.csproj
Contrastor.sln
LICENSE
PopupControl.xaml
PopupControl.xaml.cs
PopupWindow.xaml
PopupWindow.xaml.cs
README.md
app-icon.ai
app.ico
packages.config

README.md

Contrastor for Windows

A simple color contrast ratio checker that lives in your Windows system tray.

Using Contrastor to verify the color contrast ratios of a design.

Checking color contrast ratios is an integral part of making sure your designs are accessible. The WCAG defines a number of contrast levels between two colors that tell you how easy it is to read the text when one of the colors is the foreground and the other the background color.
While there are plenty of online tools available that let you enter the color codes and spit out the contrast ratio, Contrastor aims to make this process even easier. It lives right in your Windows system tray. After opening it, you can simply pick the foreground and background color from your screen using the eyedroppers. It will instantly tell you the contrast ratio. No nonsense, just a straightforward answer to the question "Do these two colors work together?"

If you are using macOS, check out Contrast, the app that inspired Constrator.

The contrast levels

These are the possible contrast levels:

  • AAA: The ideal contrast level. For that you need a score of at least 7.00. For reference: Black (#000000) on white (#FFFFFF) has a contrast ratio of 21.00.
  • AA: Often, you won't be able to meet the contrast requirements for the best score. Colors with this level are still readable. For AA, you need a score of at least 4.5.
  • AA*: The last acceptable level, officially called AA Large. This score is only OK for a font size of at least 18pt. The score here needs to be 3.0 or higher.
  • FAIL: Anything below that. You shouldn't use this color combination.

For a more in-depth overview, have a look at Contrast's great guide.

Installation

Contrastor is a portable application that doesn't need an installer. Simply grab the ZIP download of the latest release and extract it somewhere. You can then simply launch Contrastor through the Contrastor.exe.

Starting Contrastor automatically when you login

Just create a shortcut to Constrator in the Startup folder (Win + R -> shell:startup).

License

Contrastor is licensed under the MIT license, see the LICENSE file for details. Pull requests are welcome!

You can’t perform that action at this time.