How to get the object id and the corresponding color in the Single Player?
In Single Player, type the command: i the item number: color.
For example, to get a purple wool, you must:
wool, No. 35,
the color purple is No. 10,
enter i 35:10.
Thus we have a purple wool.
The multiplayer / server, you need to upload the plugin called Default Commands.
How do I download the plugin?
You have a folder "plugins" in the main directory server plugin add DefaultCommands.
The latest list of id you can find on this page.