Replacing light switch with dimmer - can't identify wire colours; no ground
Most likely, it makes no difference if you're installing a simple dimmer switch.  All a single pole switch does (even a dimmer) is interrupt a hot circuit.  If your switch installation instructions call for specific connections (i.e hot must be hot, switch leg must be switch leg), then use an electrical tester to determine the hot lead.