key_color_image
Command line app for creating a particular color scale to images
...You can also disable alpha component, just in case the input image is a .jpg, or there is any restriction that makes the output image from being saved successfully.
If you do not know the color code, you can pass a color: -color input and the application will let you move the mouse on the screen, and when you press return, the color of the mouse pointer will be picked.
(This does not work properly in certain environments, but you can always move the mouse over your color before launching the application).