Add comparison method for `Color` class.