Modified the colorToCss() method and made sure that it will only be used at one place in the Util class