6. At the entrance of Sheep Village, there are three lights - yellow, red, and blue (the positions of the lights cannot be changed), used to indicate signals. For example, "yellow light on, red light off, blue light on" is one signal, and "yellow light off, red light off, blue light off" is another signal. There are $\qquad$ such signals.
$8$