Convert hex to RGB

What you’re doing is probably the best approach today. I would definitely use partialCached for this.

Would it be helpful if we added a hexDecode function? {{ $r := hexDecode "c0" }}