You will have to accurately measure board-side connectors using caliper and find "optically" matching connector to make a linking cable. There is a wide variety of used connectors, most popular are Molex, but there are also other vendors. Or, if you cannot determine a proper one, you can strip some thin solid wires from, for example, spare small resistors, to slide into RGB panel connector, solder thin wires (I recommend ribbon cable) to the other side of wire, and insulate using tape or heat shrink.
To accomodate RGB panel plug from my GPU, I used Molex 53398-0471, but your mileage may vary.
Unfortunately, pinouts on the mobo side differ even among one vendor products, so it's kind of trial and error. For example, MSI RX' pinout was Data/Vcc/Gnd/Gnd, and motherboard Gnd/Vcc/Din/Dout, as far as I recall. If you have the multimeter, and clean access to RGB socket, you can measure the proper pinout this way:
- on PC turned off, perform continuity test between all pins in the socket, and known grounded element, like motherboard mount screws, video output socket outer shell, etc.
- on PC turned on, and RGB enabled in software, carefully perform DC voltage measurement (hi-z, this is important to not make any short circuits) between known grounded element and all pins in the socket. VCC should be ~5V, data will be somewhere in between 0 and 5V, ground should be 0V of course.
The Corsair-side cables are well documented, for example, here with part numbers:
https://forum.corsair.com/v3/showthread.php?t=174759