If I recall correctly, the palette attributed to a tile is determined by bits 6-7 of its Tile Code. Therefore, Tile Codes 00-3F have palette 0, 40-7F palette 1, 80-BF palette 2, and C0-FF palette 3 (cycling colors). The pointer table for tile mapping tables is at B08. Addresses are B10, BAC, C64 and C8C, for tile mappings of Tile Codes with palettes 0, 1, 2 and 3 respectively.