Try this:
value = fpmi.gui.color(238,238,238,255)
http://www.inductiveautomation.com/support/usermanuals/factorypmi/source/technical/jython/modulesgui.htm#color
-Dan