Color encoding