Return rgb from different encodings