Item colors

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

Item forms of tinted 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-tinted textures used for items, distinct from the textures actually used for blocks in placed form (see Bedrock Edition history of textures/Items).