The key of shift colours is not only to provide a visual guide to the shift patterns, but also to act as a filter to show/hide shifts of a particular type by using the check boxes to the left of the key:

It may be more convenient for example, for a consultant to show only those shifts which are empty rather than have a heavily populates schedule showing all other shift states.