Compile emacs with option --srgb.