In that view's settings, ensure that Choice column is checked off. Then on the calendar view, you can format the view and that choice column should then be visible as an option, and you can color code from there. If you want a color that isn't in the default options, select anything and then you can edit the JSON to be any other color using proper color code: https://zerg00s.github.io/sp-modern-classes/