Added support for shorthand colors (e.g. #F00 instead of #FF0000)