static @NotNull TextColor color(final @NotNull RGBLike rgb) {
    if (rgb instanceof TextColor) return (TextColor) rgb;
    return color(rgb.red(), rgb.green(), rgb.blue());
  }
Creates a new text colour.

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