public Color (String hexValue) { this (hexValue, null ); } code example Example: kotlin convert color hex to rgba int color = Color.parseColor("#123456");