HEX: #CC7A8C
RGB: (204,122,140)
#CC7A8C contains mainly red color. Web safe color of #CC7A8C is #CC6699 (or #C69).
#CC7A8C color RGB value is (204,122,140).
RGB: (204,122,140) (80%,48%,55%)
R 204 of 255 = 80%
G 122 of 255 = 48%
B 140 of 255 = 55%
R + G + B ~ 61%. #CC7A8C is quite light color.
R + G + B =
204 + 122 + 140 = 466 (100%)
R 204 of 466 ~ 43.78%
G 122 of 466 ~ 26.18%
B 140 of 466 ~ 30.04%
#CC7A8C color CMYK value is (0,40,31,20).
CMYK: (0,40,31,20) C0M40Y31K20 (0%,40%,31%,20%) (0.00/0.40/0.31/0.20)
CC | 7A | 8C | |
---|---|---|---|
RGB | 204 | 122 | 140 |
HSL | 347° | 44.57% | 63.92% |
HSB/HSV | 347° | 40.20% | 80.00% |
CMYK | 0.00% | 40.20% | 31.37% |
20.00% |
HEX | CC | 7A | 8C |
Decimal | 204 | 122 | 140 |
Binary | 11001100 | 1111010 | 10001100 |
Octal | 314 | 172 | 214 |
Examples of css and html codes for elements with #CC7A8C color. Also use rgb(204,122,140) instead hex code.
.myTextColor { color: #CC7A8C; }
<p style="color:#CC7A8C">This sample text font color is #CC7A8C.</p>
This text font color is #CC7A8C.
.myBgColor { background-color: #CC7A8C; }
<div style="background-color:#CC7A8C">Inner text</div>
This div background color is #CC7A8C.
.myBorderColor { border: 1px solid #CC7A8C; }
<div style="border:3px solid #CC7A8C">Div</div>
This div border color is #CC7A8C.
.myOpacity80 { color: #CC7A8C; opacity: 0.8; }
<p style="color:#CC7A8C;opacity:0.8;">80%</p>
Text with #CC7A8C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #CC7A8C;}
<p style="text-shadow: 3px 3px 1px #CC7A8C">Text here.</p>
This text has shadow with #CC7A8C color.
.textShadow {text-shadow: 3px 3px 1px #CC7A8C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #CC7A8C, 5px 5px 20px red">Text here.</p>
This text has shadow with #CC7A8C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#CC7A8C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#CC7A8C, Direction=45, Strength=4)">Text</p>
This text has shadow with #CC7A8C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #CC7A8C; -webkit-box-shadow: 1px 1px 3px 2px #CC7A8C; box-shadow: 1px 1px 3px 2px #CC7A8C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #CC7A8C; -webkit-box-shadow: 1px 1px 3px 2px #CC7A8C; box-shadow:1px 1px 3px 2px #CC7A8C;">
Div content here</div>
This text has color #CC7A8C on black background.
This text has color #CC7A8C on white background.
This text has black color on #CC7A8C background.
This text has white color on #CC7A8C background.