HEX: #CC508A
RGB: (204,80,138)
#CC508A contains mainly red color. Web safe color of #CC508A is #CC6699 (or #C69).
#CC508A color RGB value is (204,80,138).
RGB: (204,80,138) (80%,31%,54%)
R 204 of 255 = 80%
G 80 of 255 = 31%
B 138 of 255 = 54%
R + G + B ~ 55%. #CC508A is middle color (not dark and not light).
R + G + B =
204 + 80 + 138 = 422 (100%)
R 204 of 422 ~ 48.34%
G 80 of 422 ~ 18.96%
B 138 of 422 ~ 32.7%
#CC508A color CMYK value is (0,61,32,20).
CMYK: (0,61,32,20) C0M61Y32K20 (0%,61%,32%,20%) (0.00/0.61/0.32/0.20)
CC | 50 | 8A | |
---|---|---|---|
RGB | 204 | 80 | 138 |
HSL | 332° | 54.87% | 55.69% |
HSB/HSV | 332° | 60.78% | 80.00% |
CMYK | 0.00% | 60.78% | 32.35% |
20.00% |
HEX | CC | 50 | 8A |
Decimal | 204 | 80 | 138 |
Binary | 11001100 | 1010000 | 10001010 |
Octal | 314 | 120 | 212 |
Examples of css and html codes for elements with #CC508A color. Also use rgb(204,80,138) instead hex code.
.myTextColor { color: #CC508A; }
<p style="color:#CC508A">This sample text font color is #CC508A.</p>
This text font color is #CC508A.
.myBgColor { background-color: #CC508A; }
<div style="background-color:#CC508A">Inner text</div>
This div background color is #CC508A.
.myBorderColor { border: 1px solid #CC508A; }
<div style="border:3px solid #CC508A">Div</div>
This div border color is #CC508A.
.myOpacity80 { color: #CC508A; opacity: 0.8; }
<p style="color:#CC508A;opacity:0.8;">80%</p>
Text with #CC508A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #CC508A;}
<p style="text-shadow: 3px 3px 1px #CC508A">Text here.</p>
This text has shadow with #CC508A color.
.textShadow {text-shadow: 3px 3px 1px #CC508A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #CC508A, 5px 5px 20px red">Text here.</p>
This text has shadow with #CC508A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#CC508A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#CC508A, Direction=45, Strength=4)">Text</p>
This text has shadow with #CC508A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #CC508A; -webkit-box-shadow: 1px 1px 3px 2px #CC508A; box-shadow: 1px 1px 3px 2px #CC508A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #CC508A; -webkit-box-shadow: 1px 1px 3px 2px #CC508A; box-shadow:1px 1px 3px 2px #CC508A;">
Div content here</div>
This text has color #CC508A on black background.
This text has color #CC508A on white background.
This text has black color on #CC508A background.
This text has white color on #CC508A background.