There's no standard colour code. A proper high quality cable will have three 75Ω screened coax cores for R,G,B and their grounds, single cores for the syncs and other functions, all within an overall screen. Basic cables e.g. ones that come bundled with monitors and most really short ones will just be a bunch of identical single cores in a screen. The signal degradation that the non-coaxial cores will create isn't so much of a problem if the run is under 2m long. In either case for any given brand of cable you just have to bell through with a meter to find out which pin is which colour, no two cables are alike!
Also worth mentioning, another popular way to run VGA over moderate distances (too long for a ready made cable, not long enough to absolutely need an extender) is 5-way coax. Usually five RG-179s in a sheath, you crimp BNCs on both ends and connect to BNC - 15 pin breakouts which give you R,G,B, H & V but not DDC. Not really needed for your short hop though.