id you use photoshop, when you're done drawing your sprite/terrain layer, go to image > mode and change RGB to indexed colours, then load the CC palette and then press okay and save
if it's terrain, load the terrain colour palette.
you can extract the palettes from the default CC sprites/terrain bitmaps.