<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Converting Microsoft Office colors to SAS colors in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525607#M17629</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I find color conversion to be very accurate, when I just use the HEX. format to do the conversion from decimal to hex. Using my standard method, this is what I see comparing Powerpoint and the decimal numbers with ODS HTML and the HEX values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="decimal_hex_colors.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26116iFE17020672524281/image-size/large?v=v2&amp;amp;px=999" role="button" title="decimal_hex_colors.png" alt="decimal_hex_colors.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Those colors look pretty much the same to me. Here's the code I used:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26117i1466E73A76250224/image-size/large?v=v2&amp;amp;px=999" role="button" title="the_code.png" alt="the_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not going to address your technique in your macro because it's not entirely clear what the disposition of the CX color value is to me for how you're going to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without more of an example from you, this is going to be hard to make more concrete suggestions. But the other thing I do is always go to the W3schools color picker here: &lt;A href="https://www.w3schools.com/colors/colors_picker.asp" target="_blank"&gt;https://www.w3schools.com/colors/colors_picker.asp&lt;/A&gt; which very nicely allows you to enter RGB values and then shows you the hex. I do really trust HEX2 in my PUT function, but the thing I like about the W3Schools site is that they show other shades of that color family and there might be a color I like better. Here's what the BLUE looks like on the W3Schools site:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="color_picker.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26118iFF3EB9CA6C6CBEB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="color_picker.png" alt="color_picker.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 01:21:43 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-01-09T01:21:43Z</dc:date>
    <item>
      <title>Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525573#M17625</link>
      <description>&lt;P&gt;Hi, Is there a way to convert Microsoft Office RGB colors to the exact same colors in SAS?&lt;/P&gt;&lt;P&gt;I've tried using the following code (SAS version 9.4):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* convert integer 0--255 to 2 digit hex 00-FF */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; hex2(n);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%local&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; digits n1 n2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; digits = 0123456789ABCDEF;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; n1 = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%substr&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;digits, &amp;amp;n / 16 + 1, 1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; n2 = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%substr&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;digits, &amp;amp;n - &amp;amp;n / 16 * 16 + 1, 1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;n1&amp;amp;n2&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; hex2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* convert RGB triplet (r,g,b) to SAS color in hexadecimal.&lt;/P&gt;&lt;P&gt;The r, g, and b parameters are integers in the range 0--255 */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RGB(r,g,b);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;cmpres&lt;/I&gt;&lt;/STRONG&gt;(CX%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;r)%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;g)%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;b))&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RGB;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; colours;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"MyPeach = %RGB(250,192,144)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"MyGreen = %RGB(79,98,40)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"MyBlue = %RGB(31,73,125)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above code &lt;STRONG&gt;almost&lt;/STRONG&gt; works, but the colors it creates in SAS&amp;nbsp;look slightly different from the ones created in Office. I need them to be exactly the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525573#M17625</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-01-08T20:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525575#M17626</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92670"&gt;@happy_mouth&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, Is there a way to convert Microsoft Office RGB colors to the exact same colors in SAS?&lt;/P&gt;
&lt;P&gt;I've tried using the following code (SAS version 9.4):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* convert integer 0--255 to 2 digit hex 00-FF */&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; hex2(n);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%local&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; digits n1 n2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; digits = 0123456789ABCDEF;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; n1 = &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%substr&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;digits, &amp;amp;n / 16 + 1, 1);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; n2 = &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%substr&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;digits, &amp;amp;n - &amp;amp;n / 16 * 16 + 1, 1);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;amp;n1&amp;amp;n2&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; hex2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* convert RGB triplet (r,g,b) to SAS color in hexadecimal.&lt;/P&gt;
&lt;P&gt;The r, g, and b parameters are integers in the range 0--255 */&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RGB(r,g,b);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;cmpres&lt;/I&gt;&lt;/STRONG&gt;(CX%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;r)%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;g)%&lt;STRONG&gt;&lt;I&gt;hex2&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;b))&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RGB;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; colours;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;put&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;"MyPeach = %RGB(250,192,144)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;put&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;"MyGreen = %RGB(79,98,40)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;put&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;"MyBlue = %RGB(31,73,125)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code &lt;STRONG&gt;almost&lt;/STRONG&gt; works, but the colors it creates in SAS&amp;nbsp;look slightly different from the ones created in Office. I need them to be exactly the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you&amp;nbsp;have&amp;nbsp;any transparency settings in either SAS or Office?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525575#M17626</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-08T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525589#M17627</link>
      <description>&lt;P&gt;Could you show us a picture (or screen capture) of the comparison?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 21:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525589#M17627</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-01-08T21:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525605#M17628</link>
      <description>&lt;P&gt;Try running this code:&lt;/P&gt;
&lt;PRE&gt;%colormac;
&lt;/PRE&gt;
&lt;P&gt;You &lt;U&gt;may&lt;/U&gt; have a number of SAS supplied macros that are designed for this purpose, including one named RGB. If you don't get an undefined macro from that code then there will also be a bit about how to request details on using the color macros. The call to the SAS RGB macro looks amazing like yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you may want to examine this code as an alternative approach to string manipulation:&lt;/P&gt;
&lt;PRE&gt;%let hex =  %sysfunc(putn(255,hex2.));
%put &amp;amp;hex.;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2019 23:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525605#M17628</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-08T23:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525607#M17629</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I find color conversion to be very accurate, when I just use the HEX. format to do the conversion from decimal to hex. Using my standard method, this is what I see comparing Powerpoint and the decimal numbers with ODS HTML and the HEX values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="decimal_hex_colors.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26116iFE17020672524281/image-size/large?v=v2&amp;amp;px=999" role="button" title="decimal_hex_colors.png" alt="decimal_hex_colors.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Those colors look pretty much the same to me. Here's the code I used:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26117i1466E73A76250224/image-size/large?v=v2&amp;amp;px=999" role="button" title="the_code.png" alt="the_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not going to address your technique in your macro because it's not entirely clear what the disposition of the CX color value is to me for how you're going to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without more of an example from you, this is going to be hard to make more concrete suggestions. But the other thing I do is always go to the W3schools color picker here: &lt;A href="https://www.w3schools.com/colors/colors_picker.asp" target="_blank"&gt;https://www.w3schools.com/colors/colors_picker.asp&lt;/A&gt; which very nicely allows you to enter RGB values and then shows you the hex. I do really trust HEX2 in my PUT function, but the thing I like about the W3Schools site is that they show other shades of that color family and there might be a color I like better. Here's what the BLUE looks like on the W3Schools site:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="color_picker.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26118iFF3EB9CA6C6CBEB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="color_picker.png" alt="color_picker.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 01:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525607#M17629</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-09T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525884#M17645</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Your solution works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--David&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 21:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/525884#M17645</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-01-09T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Microsoft Office colors to SAS colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/703544#M20783</link>
      <description>&lt;P&gt;Also from RGB percentage to RGB codes:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;locale=en#n0ye3r7vscamjun1uxyzeo84xml2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Compute the RGB percentages */&lt;BR /&gt;data _null_;&lt;BR /&gt;r = 231;&lt;BR /&gt;g = 179;&lt;BR /&gt;b = 180;&lt;BR /&gt;call symputx("r", round((r/255)*100));&lt;BR /&gt;call symputx("g", round((g/255)*100));&lt;BR /&gt;call symputx("b", round((b/255)*100));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/* Convert to RGB color name */&lt;BR /&gt;%COLORMAC;&lt;BR /&gt;data _null_;&lt;BR /&gt;put "%RGB(&amp;amp;r,&amp;amp;g,&amp;amp;b)";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 03:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Converting-Microsoft-Office-colors-to-SAS-colors/m-p/703544#M20783</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-12-04T03:55:54Z</dc:date>
    </item>
  </channel>
</rss>

