Rendered video has wrong colors

Video has correct colors only if I render with Avi raw or FFmpeg codec #1 or Png codec. Sequencer makes no difference. I also tried to convert Avi raw using other software using vp9, h264 and some other codecs aaaaand it also breaks colors adding that awful yellow tint. Perhaps it’s different color space thing, AVI raw, FFmpeg1 and png are using RGB while vp9 and h264 are using YUV color space. Still difference is dramatic. I guess the only way to solve it is to add color correction in compositor.