<?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: Available RGB colors in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231725#M54600</link>
    <description>&lt;P&gt;As far as I know, rounding isn't necessary to use the %RGB macro.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 19:51:08 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-10-26T19:51:08Z</dc:date>
    <item>
      <title>Available RGB colors in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231718#M54597</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm familiar with converting RBG to Hex colors via the %colormac macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I use to output the appropriate SAS colors. However, when I graph them it is clear it is not the correct colors. They are supposed to vary from yellow to red for the first six colors, and the last color is a standard grey. However, in some cases, the same color is output for multiple inputs (yellow and grey in this example). Is it possible to use exactly these colors in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%colormac;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;%put %rgb (225, 210, 130) ; *this is a yellow;&lt;/P&gt;
&lt;P&gt;%put %rgb(253,185,39); *this is a darker yellow;&lt;/P&gt;
&lt;P&gt;%put %rgb(225,130,37); *this is a light orange;&lt;/P&gt;
&lt;P&gt;%put %rgb(202, 82, 32); *this is a deeper orange;&lt;/P&gt;
&lt;P&gt;%put %rgb(181, 18, 27); *this is a light-medium red;&lt;/P&gt;
&lt;P&gt;%put %rgb(141, 27, 29); *this is a deeper red;&lt;/P&gt;
&lt;P&gt;%put %rgb(191, 191, 191); *this is grey;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For grey and the first yellow, it outputs CXFFFFFF for both, which makes me wonder about the possible RGB color range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can these exact colors be used?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231718#M54597</guid>
      <dc:creator>OPHD1</dc:creator>
      <dc:date>2015-10-26T19:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Available RGB colors in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231721#M54598</link>
      <description>&lt;P&gt;The documentation says that the RGB values must be in the range from 0 to 100, so your commands are obviously incorrect.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231721#M54598</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-26T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Available RGB colors in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231722#M54599</link>
      <description>&lt;P&gt;Thanks Paige. SAS needs 0-100 set of RGB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both the 0-100 and 0-255 sets of sRGB data represent the same sRGB standard. Notation in the 0-100 scale simply uses percentages of the 0-255 scale.&lt;/P&gt;
&lt;P&gt;sRGB 0-255: 237-233-140.&lt;/P&gt;
&lt;P&gt;To calculate the 0-100 value, simply use the absolute value of the decimal equivalent of the percentage of 255 contained in the 0-255 value, as follows:&lt;/P&gt;
&lt;P&gt;R 237 = 237/255 = .929 rounded to .93; Absolute value of .93 = 93&lt;/P&gt;
&lt;P&gt;G 235 = 237/255 = .909 rounded to .91; Absolute value of .91 = 91&lt;/P&gt;
&lt;P&gt;B 140 = 140/255 = .549 rounded to .55; Absolute value of .55 = 55.&lt;/P&gt;
&lt;P&gt;The resulting 0-100 value is 93-91-55.&lt;/P&gt;
&lt;P&gt;We&amp;nbsp;hope that you find this explanation helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231722#M54599</guid>
      <dc:creator>OPHD1</dc:creator>
      <dc:date>2015-10-26T19:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Available RGB colors in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231725#M54600</link>
      <description>&lt;P&gt;As far as I know, rounding isn't necessary to use the %RGB macro.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Available-RGB-colors-in-SAS/m-p/231725#M54600</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-26T19:51:08Z</dc:date>
    </item>
  </channel>
</rss>

