Tasukuea

Tasukuea is a Japanese logic puzzle. Some selected cells of the grid contain numbers. Determine the colour of each cell according to the rules.