default @NotNull String asHexString() {
    final StringBuilder result = new StringBuilder();
    result.append(HEX_PREFIX);
    final String hex = Integer.toHexString(this.value());
    for (int i = 0; i < 6 - hex.length(); i++) {
      result.append('0');
    }
    result.append(hex);
    return result.toString();
  }
Gets the color, as a hex string.

@return a hex string
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/format/TextColor.java