Fix for short-hand hex color codes (e.g. "FFF" instead of "FFFFFF")