Create RGB code from values from a survey form

I have a likert scale survey that has 4 questions, with a range of six answers. I have enabled a score for each answer, corresopnding to an RGB value (i.e. 0-255).
I would like to find a way to dynamically display the resulting colour by concatenating the RGB+Alpha values somewhere within the form before submission.
Do I need to separate out the questions or can Ieave them in a single table? How do I refernce teh values in the survey in a calucaltion field for Number Field, and does it use similar commands to Excel?