Today, the modern metric for comparing two colors in the CIELAB color space is the ΔE2000. The implementation of this formula, with helpers for handling RGB and hexadecimal colors, available for example here in 20+ programming languages, should help us move forward.