## color code

Solved
Super Contributor
Posts: 271

# color code

How to interpret this color code (CXD9892C) in the TITLE statement?

``````title1 color=CXD9892C height=2 'This is my title';

proc print  data=sashelp.class;
run;``````

Accepted Solutions
Solution
‎03-28-2016 12:55 PM
SAS Super FREQ
Posts: 977

## Re: color code

It is an RGB color, with RED=D9, GREEN=89, and BLUE=2C. The values are in HEX, so just convert them to decimal to find out their decimal value.

Hope this helps!

Dan

All Replies
Solution
‎03-28-2016 12:55 PM
SAS Super FREQ
Posts: 977

## Re: color code

It is an RGB color, with RED=D9, GREEN=89, and BLUE=2C. The values are in HEX, so just convert them to decimal to find out their decimal value.

Hope this helps!

Dan

Super Contributor
Posts: 271

## Re: color code

@DanH_sas.  Thank you. #e0e0e0  is also RGB color scheme?

```proc template;
define table mytable;
cellstyle mod(_row_, 2) as {background=#e0e0e0},
1 as {background=#c3c3c3};
column name age sex height weight;
define column weight;
cellstyle _val_ >= 110 as {foreground=red},
_val_ >= 90 as {foreground=yellow},
1 as {foreground=green};
end;
end;
run;```
SAS Super FREQ
Posts: 977