For simplifying manipulation with browser representation of color and java.awt.Color class, you can use ColorUtils class.