convert hex to rgba values for paint method