HEX: #CC0C2A
RGB: (204,12,42)
#CC0C2A contains mainly red color. Web safe color of #CC0C2A is #CC0033 (or #C03).
#CC0C2A color RGB value is (204,12,42).
RGB: (204,12,42) (80%,5%,16%)
R 204 of 255 = 80%
G 12 of 255 = 5%
B 42 of 255 = 16%
R + G + B ~ 34%. #CC0C2A is quite dark color.
R + G + B =
204 + 12 + 42 = 258 (100%)
R 204 of 258 ~ 79.07%
G 12 of 258 ~ 4.65%
B 42 of 258 ~ 16.28%
#CC0C2A color CMYK value is (0,94,79,20).
CMYK: (0,94,79,20) C0M94Y79K20 (0%,94%,79%,20%) (0.00/0.94/0.79/0.20)
CC | 0C | 2A | |
---|---|---|---|
RGB | 204 | 12 | 42 |
HSL | 351° | 88.89% | 42.35% |
HSB/HSV | 351° | 94.12% | 80.00% |
CMYK | 0.00% | 94.12% | 79.41% |
20.00% |
HEX | CC | 0C | 2A |
Decimal | 204 | 12 | 42 |
Binary | 11001100 | 1100 | 101010 |
Octal | 314 | 14 | 52 |
Examples of css and html codes for elements with #CC0C2A color. Also use rgb(204,12,42) instead hex code.
.myTextColor { color: #CC0C2A; }
<p style="color:#CC0C2A">This sample text font color is #CC0C2A.</p>
This text font color is #CC0C2A.
.myBgColor { background-color: #CC0C2A; }
<div style="background-color:#CC0C2A">Inner text</div>
This div background color is #CC0C2A.
.myBorderColor { border: 1px solid #CC0C2A; }
<div style="border:3px solid #CC0C2A">Div</div>
This div border color is #CC0C2A.
.myOpacity80 { color: #CC0C2A; opacity: 0.8; }
<p style="color:#CC0C2A;opacity:0.8;">80%</p>
Text with #CC0C2A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #CC0C2A;}
<p style="text-shadow: 3px 3px 1px #CC0C2A">Text here.</p>
This text has shadow with #CC0C2A color.
.textShadow {text-shadow: 3px 3px 1px #CC0C2A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #CC0C2A, 5px 5px 20px red">Text here.</p>
This text has shadow with #CC0C2A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#CC0C2A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#CC0C2A, Direction=45, Strength=4)">Text</p>
This text has shadow with #CC0C2A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #CC0C2A; -webkit-box-shadow: 1px 1px 3px 2px #CC0C2A; box-shadow: 1px 1px 3px 2px #CC0C2A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #CC0C2A; -webkit-box-shadow: 1px 1px 3px 2px #CC0C2A; box-shadow:1px 1px 3px 2px #CC0C2A;">
Div content here</div>
This text has color #CC0C2A on black background.
This text has color #CC0C2A on white background.
This text has black color on #CC0C2A background.
This text has white color on #CC0C2A background.