https://repl.it/@Kasran/colortest if anyone wants to inspect this code (do note that it emphatically doesn't work properly when you try to run it from repl.it, at least not for me)
@typhlosion (looks like the main problem is repl.it chokes on non-ascii characters in program output? also their terminal doesnt support true color mode, so it's using the nearest color from what i assume is xterm's 256 color palette instead)