Parse json and hex color string to bytes