Displays a grid of color contrast ratios for various foregrounds against various backgrounds. If contrast ratios don't meet a 4.5:1 requirement, it highlights the pair of colors in red. Contrast ratios are calculated using the algorithm from http://andora.us/blog/2011/03/03/choosing-foreground-using-luminosity-contrast-ratio/, which seems to match Colour Contrast Analyser in all of my testing.
- Download or clone the repository
- Open
ColorContrastGrid.sln
in Visual Studio - Open
MainWindow.xaml.cs
and adjust thebackgrounds
/backgroundNames
/foregrounds
/foregroundNames
to suit your needs - Build and run