Colors to shorthand hexadecimal

Colors to shorthand hexadecimal + fix #1548 in IE9