I work in a group of people putting together a report. I use primarily Stata to create graphs, a colleague uses R, and the report is created by MS SQL Server Reporting Services (SSRS) and published as PDF files.
In the report there is a coloured banner heading each page. The banner colour is selected from our institution's defined colour palette, and is specified in the SSRS template using the hex code given below. This is the colour wanted in the graphs.
My colleague specifies the hex code in R, and gets R graphs that visually match the banner.
It turns out that if I specify the RGB code for this colour in my Stata graphs, it does not match the colour in the R graphs or the banner. The Stata graph comes out less intense and with a noticeably different hue.
I am certain that I use the correct translation of codes hex-to-RGB, I have used two separate translator tools and checked the calculation myself. In addition, I have used a colour selector (like the one found in Stata Graph Editor) to manually find a colour which makes the Stata graph look very close to the banner colour, and it turns out to have a very different RGB code in Stata.
Any explanations, or methods to translate from hex to the correct RGB code needed in Stata?
My colour example: A dark blue.
- hex: #393c61 - used in the report banner.
- This translates to decimal RGB: "57 60 97" , which in a Stata graph is not the same colour visually.
- In Stata, the code "24 24 71" gives a nearly correct colour.
In the report there is a coloured banner heading each page. The banner colour is selected from our institution's defined colour palette, and is specified in the SSRS template using the hex code given below. This is the colour wanted in the graphs.
My colleague specifies the hex code in R, and gets R graphs that visually match the banner.
It turns out that if I specify the RGB code for this colour in my Stata graphs, it does not match the colour in the R graphs or the banner. The Stata graph comes out less intense and with a noticeably different hue.
I am certain that I use the correct translation of codes hex-to-RGB, I have used two separate translator tools and checked the calculation myself. In addition, I have used a colour selector (like the one found in Stata Graph Editor) to manually find a colour which makes the Stata graph look very close to the banner colour, and it turns out to have a very different RGB code in Stata.
Any explanations, or methods to translate from hex to the correct RGB code needed in Stata?
My colour example: A dark blue.
- hex: #393c61 - used in the report banner.
- This translates to decimal RGB: "57 60 97" , which in a Stata graph is not the same colour visually.
- In Stata, the code "24 24 71" gives a nearly correct colour.
Comment