Quarks come in 3 colors (we label those "charges" color because they have similar properties to the ordinary colors, but this is a mere analogy), say red, blue and green. Gluons come in eight "pairs" colors, all possible combinations minus the "white" one. A red quark can become green by emitting for instance a red-antigreen gluon. The gluon carries energy and momentum, and is absorbed by a quark carrying green color, which becomes red. There are probabilities (amplitudes) for the process to take place depending on the combination of color, and the so called "coupling constant", which you can think of as the probability to emit a gluon in a certain volume during a certain time. Thus, quarks exchange energy and momentum depending on their color. This exchange of energy and momentum we call "force". The full story is rather complicated, because gluon themselves can emit and absorb gluons, so the coupling constant itself depends on the spacetime volume over which the process is taking place.