There is no standard for color codes. The chart you found seems to be using the resistor color codes, but shifted by 1 for some reason.
You're just going to have to "buzz out" the connections one-by-one using an ohmmeter or something.
Answer from Dave Tweed on Stack ExchangeVideos
The original serial connectors were 25 pins, with some/many/most of the pins used. The DB-9 RS-232 connector just takes the nine most popular pins from the DB-25 connector. In either DB-25 or DB-9 connector, which pins are actually used depends on the hardware/software implementation of the serial protocol. At minimum, for two-way serial communication you need just three pins:
RX(Receive) - connected toTXon the other end. Pin 2 on standard DB-9 and DB-25TX(Transmit) - connected toRXon the other end . Pin 3 on standard DB-9 and DB-25GND(Signal ground) - Pin 5 on standard DB-9 and pin 7 on standard DB-25
(Note that sometimes particular serial cables are wired in non-standard way, but this is very rare. Indeed, there is a number of possible serial connectors). If your serial communication is one-way then you might only use two pins: TX/RX and GND.
The particular cable you have connects the six most popular lines. Cables that connect only some of the DB-9 serial lines are widely available, though do not assume that the same six pins are connected on all DB-9 cables. Depending on your needs, the six connected pins may or may not be sufficient. If you know which pins your hardware/software needs, then you would look for a cable that has those pins actually wired. For most modern needs (if "modern" can be used to apply to serial port in 2013) six wires is sufficient.
Unfortunately, there is no standard for color coding serial lines. You might hope that signal ground is black/brown, though often it is green, or some other random color. TX/RX are often yellow and green, but again you cannot count on this. The only way to know which color is connect to what pin is to test with a multimeter.
Assuming your connector is for RS-232 (notice that a DB9 may be used for other interfaces too) there are pins that aren't used in some cases. For instance, a cable to connect two computers doesn't need the RI (ring indicator) pin; also one of the pairs RTS/CTS or DSR/DTR may not be connected, since either one or the other is used in most transmission modes. Take a look at http://pinouts.ru/SerialPorts/Serial9_pinout.shtml
I should state that I dont have experience with electronics, I can connect wires and that is all.
Problem I am about to describe is present on electrical weight, cable is connected to female socket, but I have no idea how the cable looks, since it comes from inside of the body of the weight.
I broke some pins on RS232(male) plug, at first I thought replacing it would be easy, cut the old plug, buy new cable, connect wires and that is it. I bought DB9 cable, but it had 10 wires. One on the weight has 4. I tried connecting 4 colored wires with matching colors out of 10, it did give output on the screen, but it was -71KG, and it wouldn't change by pressing on the weight. I am posting pictures of socket and wires I have. I am asking you tell me what color goes in what hole. I have a friend who will solder wires onto a plug, but he doesnt know combination.
Here is the link to photos of a socket and colored wires (there are only 4 on this cable)