GetCokor dari Drawable di Java Android Studio

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