<div dir="ltr">I have (a couple) of PNG images with a background color of, for example, RGB(80,64,83), that when placed on a page of the same background color with `graphicx` -- they show a distinct tonality against the background -- which is of the same color, when run under XeLaTeX. There are no problems under pdfLaTeX or LuaLaTeX.<br><br>----<br><font face="monospace">\documentclass{report}<br><br>\usepackage{xcolor}<br>\definecolor{bgcolor}{RGB}{80,64,83}<br><br>\usepackage{graphicx}<br>\pagestyle{empty}<br><br>\begin{document}<br><br>\pagecolor{bgcolor}<br>\includegraphics[width=0.5\textwidth]{A.png}<br>\quad<br>\includegraphics[width=0.5\textwidth]{B.png}<br><br>\medskip<br><br>\includegraphics[width=0.5\textwidth]{A-gimp.png}<br>\quad<br>\includegraphics[width=0.5\textwidth]{B-gimp.png}<br><br>\end{document}</font><div><font face="monospace">---<br></font><br>Checking the colors in the included files one can see they have changed from (80,64,83) to (71,56,74) in the first two included images.<br><br>Just opening the images on `GIMP` and exporting it as-is with the default choices, fixes everything and the new inclusion now gets the exact color they were set to begin with, the same as the background, as shown below (second line). <div><br></div><div>Looking at the PDF, Ultike Fischer (at TeXHax) traced it to a problem with dvipdfmx that, she determined, uses the wrong color space (CalRGB) for the first two images and DeviceRGB for the last two.</div><div><br>What is that XeTeX needs from the PNG's to preserve their color when included in a page?<br><br>For experimentation here are all files attached.</div><div><br></div><div>Paulo Ney</div><div><br><br></div><div><br></div><div><br></div><div><br></div></div></div>