var myRGBColor = new RGBColor(); myRGBColor.red = 128; myRGBColor.green = 255; myRGBColor.blue = 0; app.activeDocument.rasterItems[0].colorize(myRGBColor);