added p4 color legend using common color calculator