Click a green flag, and then click somewhere on the red bar. Then click in the square to show the color in hexadecimal form i.e. 0xRRGGBB.
I was inspired by: https://scratch.mit.edu/projects/92712320/