Hi all,
I'm familiar with converting RBG to Hex colors via the %colormac macro.
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?
%colormac;
data _null_;
%put %rgb (225, 210, 130) ; *this is a yellow;
%put %rgb(253,185,39); *this is a darker yellow;
%put %rgb(225,130,37); *this is a light orange;
%put %rgb(202, 82, 32); *this is a deeper orange;
%put %rgb(181, 18, 27); *this is a light-medium red;
%put %rgb(141, 27, 29); *this is a deeper red;
%put %rgb(191, 191, 191); *this is grey;
run;
For grey and the first yellow, it outputs CXFFFFFF for both, which makes me wonder about the possible RGB color range.
Can these exact colors be used?
... View more