HEX/RGB Color to Decimal NBT Converter
Convert colors from HEX, RGB, or the visual picker to the decimal value used in NBT components of Minecraft Java Edition, such as text_display, armor stand, maps, fireworks, and beacons.
Without the #. E.g., FF0000 for red, 55FFFF for cyan.
Each value ranges from 0 to 255.
Accepts Decimal RGB (0 to 16,777,215) or ARGB, positive or negative (e.g., -65536).
Want to create a cheap Minecraft server with no lag?
I recommend Sparked Host: affordable plans, great performance, easy panel, and fast support.
🚀 Create a server on Sparked HostHow to Use the Color Converter
Choose the input mode in HEX, RGB, visual Picker, or Decimal → Color (for the reverse path, when you already have a decimal number from an NBT and want to find the color). The "Results" panel shows all representations of the color — click on any card to copy the value.
The "Ready-to-use NBT Snippets" automatically update the decimal value as
you change the color, ready to paste into game chat in commands like /summon,
/give, and /data merge.
RGB, ARGB, and Negative Values
Most NBT fields (such as color on armor stands and text_color on text_display)
use only RGB, which is always a positive number between 0 and 16,777,215. On the other hand, the
background field of text_display uses ARGB (with an alpha channel) in a
signed 32-bit integer — which is why values with high transparency or total opacity appear as
negative numbers.
Frequently Asked Questions
How do you convert a HEX color to decimal in Minecraft?
Convert the HEX to R, G, and B values (0-255) and apply the formula decimal = R × 65536 + G × 256 + B.
Why is the text_display background negative?
Because that field uses signed 32-bit ARGB. When the value exceeds 2,147,483,647, it is represented as a negative number.
What is the difference between Decimal RGB and Decimal ARGB?
Decimal RGB has no alpha channel and ranges from 0 to 16,777,215. Decimal ARGB includes transparency and can appear as a negative number in signed fields.