Implementation of CIEDE2000 color-difference formula, which, unlike, something simpler, like Euclidean distance, takes into account subjective visual perception.
difference = ColorDifference.cie2000({ r: 255, g: 25, b: 31 },
{ r: 251, g: 34, b: 89 })