Item colors

The following page lists colors which are applied to items in the game.

Item forms of colored blocks
The inventory color of the grass is calculated with and. The result is, We can get the color for the middle of center(x:127, y:127) of the.

These are exclusive to Java Edition; Bedrock Edition instead has pre-colored textures used for items, distinct from the textures actually used for blocks in placed form (see Bedrock Edition history of textures/Items).