Dye leather armor

Leather armor can be dyed with dyes in the crafting grid. According to the Minecraft Wiki (Dye, Java Edition), the final color is the average of the colors used, multiplied by a brightness factor. The default color of leather armor is #A06540.

The brightness factor is the sum of the strongest components of each color, divided by the largest channel of the sum of all colors. Each channel is rounded to the nearest 1/255 value. The armor's current color, if it is already dyed, enters as one more color.

Wiki example: five black dyes and two cyan dyes give #1B4144. The wiki's red, blue and white sample (#C899BF) comes out here as #C898BF: the difference of 1 in the green is recorded and was not resolved.

Tool

Choose at least one dye.

Worked example

Red, blue and white, without the armor's current color. The three color channels of the dyes are added: R = 176 + 60 + 249 = 485, G = 46 + 68 + 255 = 369, B = 38 + 170 + 254 = 462. The largest of the three sums is 485. The sum of the largest channel of each color is 176 + 170 + 255 = 601, so the brightness factor is 601 / 485 ≈ 1.239. The average per channel (R 161.67; G 123; B 154) multiplied by the factor gives R ≈ 200.3 (200), G ≈ 152.4 (152) and B ≈ 190.8 (191), result #C898BF.

The wiki sample for this mix is #C899BF. The 1/255 difference in green is not explained by the source we checked; this page follows the formula described on the wiki.

How to use

  1. Choose the armor's current color, if it is already dyed, or leave it blank for undyed armor.
  2. Add from 1 to 8 dyes, from the list of 16 colors.
  3. Read the final color in RGB and in hexadecimal.
  4. Use Example to see the case of five black dyes and two cyan ones.

Frequently asked questions

Why does the color come out lighter or darker than the average?

Because of the brightness factor: the wiki's rule adjusts the result for the strongest channel, so the color can look more vivid than a simple average.

Does armor that is already dyed count in the calculation?

Yes, as one more color. Enter the current color in the field for it.

Does Bedrock Edition use the same rule?

No. The wiki describes a different calculation for Bedrock Edition, with the average between the cauldron color and the dye color. This tool follows Java Edition.

Why does the wiki sample not match exactly?

The result of this tool is 1/255 below the wiki sample in one channel. The difference is recorded in the project and the tool uses the rule as described.

Sources