Fix an issue with new color code causing incorrect behavior with
converting colors to hex codes