static @NotNull TextColor color(final int value) {
    final int truncatedValue = value & 0xffffff;
    final NamedTextColor named = NamedTextColor.namedColor(truncatedValue);
    return named != null ? named : new TextColorImpl(truncatedValue);
  }
Creates a new text colour.

@param value the rgb value
@return a new text colour
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/format/TextColor.java