@Override
  default int compareTo(final TextColor that) {
    return Integer.compare(this.value(), that.value());
  }
Find the colour nearest to the provided colour.

@param values the colours for matching
@param any colour to match
@param <C> the color type
@return nearest named colour. will always return a value
@since 4.14.0
api/src/main/java/net/kyori/adventure/text/format/TextColor.java