or
red(1), green(2), blue(4) and yellow(8)
so 3 = red + green, 15 = red + green + blue + yellow and so on., however using this approach you will only be able to store the colour once, you couldnt' say have two yellows
and use a bitfield datatype
or do the bit manipulation in the PHP presentation layer