psychopy.org | Reference | Downloads | Github

"Unknown named color" error for one colour in experiment

URL of experiment: Pavlovia

Description of the problem:

Hi everyone, I’m trying to run my dual task online but I keep receiving an error when I run the single sound trials. On the single sound trials only a sound should be presented, so on these trials the circle stimuli needs to be the same colour as the background. However, this error keeps appearing:

I have defined all the colours in the Begin Experiment section of a code component. Red, green, and blue all work fine, the only issue is with the grey colour.

red = new util.Color([0.85, - 0.75, - 0.72]);
green = new util.Color([- 0.92, 0.02, - 0.49]);
blue = new util.Color([- 0.65, - 0.44, 0.18]);
grey = new util.Color([0.5, 0.5, 0.5]);

I’m currently working on another task whether the colours work fine online, so this error really has me stumped. Any help is much appreciated!!