GetCokor von Drawable in Java Android Studio

ContextCompat.getColor(getApplicationContext(),R.color.button_color)
Delightful Dog