Might be worth taking a look to color difference to figure out whether this library could provide some useful extensions to calculate it https://en.wikipedia.org/wiki/Color_difference There's some sample code on [this library](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/master/MaterialDesignColors.Wpf/ColorManipulation/ColorHelper.cs).