Subaru codes can be found on the parts ID sticker inside the door or on the strut tower. They are usually two or three characters with letters and numbers, like K7X.
You can also find your car's color code by providing the last 8 digits of your VIN to the parts department of your local Subaru dealership and they will be able to tell you what the color is.