How to get specific vertex color? Not just red, or green, or blue?

That doesnt work. As you can see there is one cube that is yellow.
I tried a bunch of other similar things before.
Maybe this is not possible unfortunately.
Maybe only the red blue and green are possible.