Color red = const Color(0xFF890041); Color redHexColor = HexColor('#890041'); print(red == redHexColor);///true print(redHexColor == red);///true