Input (grade 8): The color is assigned based on the color of the God who protects the day or Navagraha.
Output (grade 7): The color is based on the color of the God who protects the day or Navagraha.