Hello @anair25
Yes we can do that. I had this same requirement where I wanted to identify the colors of a rating using the stars of different color to calculate the rating given. I used the below component to capture the color of the ui element. It gives the name of the color. Based on that you can perform the remaining tasks…
https://go.uipath.com/component/colordetector-01cabc
It uses the screen location of the ui elements. So use the get attributes activity to capture the location of the element which you want to check thr color of. The pass the screen coordinates you extracted to the activity of this component.
Hope it helps…