Hex Code (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.14

Syntax

[the] hex[adecimal] code of %colors%

Description

Returns the hexadecimal value representing the given color(s). The hex value of a colour does not contain a leading #, just the RRGGBB value. For those looking for hex values of numbers, see the asBase and fromBase functions.

Examples

send formatted "<#%hex code of rgb(100, 10, 10)%>darker red" to all players

View source