better hex color sanitization