title: Wrong hex color coding in ggplot pdf export
body: <p>I have a problem with the color coding for ggplot pdf output. I would like my pdf export to have the hex color &quot;#6e302e&quot;. This works when I see the output within R but when I export and doublecheck with InDesign color picker the color is &quot;#663330&quot;. Is it possible to fix this?</p>
  <pre><code>library(tidyverse)
  library(sf)
  library(ggplot2)
  
  
  ### create random sf polygon
  pol = st_sfc(st_polygon(list(cbind(c(0,3,3,0,0),c(0,0,3,3,0)))))
  
  a &lt;- ggplot() + geom_sf(data = pol, lwd = 0.1, color = &quot;black&quot;, fill = &quot;#6e302e&quot;)  
  
  a
  
  ggsave(&quot;test.pdf&quot;, plot = last_plot(), device = &quot;pdf&quot;, width = 15, height = 12, units = c(&quot;cm&quot;))
  
  </code></pre>
  <p>EDIT:</p>
  <p>I am using newest R version on OSX.</p>
  <p>This is the color value from R output:
  <a href="https://i.stack.imgur.com/BzlCs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BzlCs.png" alt="This is the color value from R" /></a></p>
  <p>This is the color value from the pdf:
  <a href="https://i.stack.imgur.com/MePKJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MePKJ.png" alt="This is the color value from the PDF" /></a></p>