Setting selected option to a different colour once selected

Hello

Is it possible to have a list whereby when an option is selected , its colour changes?

The list repeats.

Thus all already selected items colour have a different colour to help the user choose unselected items.

Thanks