Get Background color of java text box for a desktop application

Iam trying to get the background color of java text field in desktop application. Is there any method?

Is this related to RPA ?

yes …trying with UI path