The highlighted yellow part is the transistor. The rest, indicated by the red marks is just the metal heat sink. It helps keep the transistor cool.
Its color is not an indication of whether or not the transistor is good.
The circuit board area under and around the transistor is not discolored as it would be if the transistor had been operated at high temperatures.
The transistor may be good or bad. It cannot be judged by the heat sink color.
Below is a picture of the transistor without the heat sink.
View attachment 973804
You need to use a DMM or one of the component device testers to the test the transistor.