Color myHexColor = Color(0xff123456) // her you notice I use the 0xff and that is opacity or transparency of the color // and you can also change these value .