From what I figured out, it’s: 2 red, 1 yellow, 3 green, 1 blue. But it doesn’t seem to work! Did I get it wrong? I genuinely can’t tell whether it’s a mistake I’m making in interpreting the poem, or a bug in the game…
That is the correct order! Just gotta make sure to press the buttons in that order too. Also, interacting with the door at the north of the room resets the puzzle if it was done incorrectly.