int myColor = Color.rgb(0, 0, 255);
int myColor = Color.parseColor("#FF0000");
int myColor = Color.rgb(100, 200, 50); int redValue = Color.red(myColor); // redValue is now 100Overall, the `android.graphics.Color` class is part of the `android.graphics` package in the Android SDK.