HEX: #CC9DCC
RGB: (204,157,204)
#CC9DCC contains red, green and blue colors in about the same proportion. Web safe color of #CC9DCC is #CC99CC (or #C9C).
#CC9DCC color RGB value is (204,157,204).
RGB: (204,157,204) (80%,62%,80%)
R 204 of 255 = 80%
G 157 of 255 = 62%
B 204 of 255 = 80%
R + G + B ~ 74%. #CC9DCC is quite light color.
R + G + B =
204 + 157 + 204 = 565 (100%)
R 204 of 565 ~ 36.11%
G 157 of 565 ~ 27.79%
B 204 of 565 ~ 36.11%
#CC9DCC color CMYK value is (0,23,0,20).
CMYK: (0,23,0,20) C0M23Y0K20 (0%,23%,0%,20%) (0.00/0.23/0.00/0.20)
CC | 9D | CC | |
---|---|---|---|
RGB | 204 | 157 | 204 |
HSL | 300° | 31.54% | 70.78% |
HSB/HSV | 300° | 23.04% | 80.00% |
CMYK | 0.00% | 23.04% | 0.00% |
20.00% |
HEX | CC | 9D | CC |
Decimal | 204 | 157 | 204 |
Binary | 11001100 | 10011101 | 11001100 |
Octal | 314 | 235 | 314 |
Examples of css and html codes for elements with #CC9DCC color. Also use rgb(204,157,204) instead hex code.
.myTextColor { color: #CC9DCC; }
<p style="color:#CC9DCC">This sample text font color is #CC9DCC.</p>
This text font color is #CC9DCC.
.myBgColor { background-color: #CC9DCC; }
<div style="background-color:#CC9DCC">Inner text</div>
This div background color is #CC9DCC.
.myBorderColor { border: 1px solid #CC9DCC; }
<div style="border:3px solid #CC9DCC">Div</div>
This div border color is #CC9DCC.
.myOpacity80 { color: #CC9DCC; opacity: 0.8; }
<p style="color:#CC9DCC;opacity:0.8;">80%</p>
Text with #CC9DCC color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #CC9DCC;}
<p style="text-shadow: 3px 3px 1px #CC9DCC">Text here.</p>
This text has shadow with #CC9DCC color.
.textShadow {text-shadow: 3px 3px 1px #CC9DCC, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #CC9DCC, 5px 5px 20px red">Text here.</p>
This text has shadow with #CC9DCC primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#CC9DCC, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#CC9DCC, Direction=45, Strength=4)">Text</p>
This text has shadow with #CC9DCC and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #CC9DCC; -webkit-box-shadow: 1px 1px 3px 2px #CC9DCC; box-shadow: 1px 1px 3px 2px #CC9DCC; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #CC9DCC; -webkit-box-shadow: 1px 1px 3px 2px #CC9DCC; box-shadow:1px 1px 3px 2px #CC9DCC;">
Div content here</div>
This text has color #CC9DCC on black background.
This text has color #CC9DCC on white background.
This text has black color on #CC9DCC background.
This text has white color on #CC9DCC background.