HEX: #C51C8A
RGB: (197,28,138)
#C51C8A contains mainly red and blue colors. Web safe color of #C51C8A is #CC3399 (or #C39).
#C51C8A color RGB value is (197,28,138).
RGB: (197,28,138) (77%,11%,54%)
R 197 of 255 = 77%
G 28 of 255 = 11%
B 138 of 255 = 54%
R + G + B ~ 47%. #C51C8A is middle color (not dark and not light).
R + G + B =
197 + 28 + 138 = 363 (100%)
R 197 of 363 ~ 54.27%
G 28 of 363 ~ 7.71%
B 138 of 363 ~ 38.02%
#C51C8A color CMYK value is (0,86,30,23).
CMYK: (0,86,30,23) C0M86Y30K23 (0%,86%,30%,23%) (0.00/0.86/0.30/0.23)
C5 | 1C | 8A | |
---|---|---|---|
RGB | 197 | 28 | 138 |
HSL | 321° | 75.11% | 44.12% |
HSB/HSV | 321° | 85.79% | 77.25% |
CMYK | 0.00% | 85.79% | 29.95% |
22.75% |
HEX | C5 | 1C | 8A |
Decimal | 197 | 28 | 138 |
Binary | 11000101 | 11100 | 10001010 |
Octal | 305 | 34 | 212 |
Examples of css and html codes for elements with #C51C8A color. Also use rgb(197,28,138) instead hex code.
.myTextColor { color: #C51C8A; }
<p style="color:#C51C8A">This sample text font color is #C51C8A.</p>
This text font color is #C51C8A.
.myBgColor { background-color: #C51C8A; }
<div style="background-color:#C51C8A">Inner text</div>
This div background color is #C51C8A.
.myBorderColor { border: 1px solid #C51C8A; }
<div style="border:3px solid #C51C8A">Div</div>
This div border color is #C51C8A.
.myOpacity80 { color: #C51C8A; opacity: 0.8; }
<p style="color:#C51C8A;opacity:0.8;">80%</p>
Text with #C51C8A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #C51C8A;}
<p style="text-shadow: 3px 3px 1px #C51C8A">Text here.</p>
This text has shadow with #C51C8A color.
.textShadow {text-shadow: 3px 3px 1px #C51C8A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #C51C8A, 5px 5px 20px red">Text here.</p>
This text has shadow with #C51C8A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#C51C8A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#C51C8A, Direction=45, Strength=4)">Text</p>
This text has shadow with #C51C8A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #C51C8A; -webkit-box-shadow: 1px 1px 3px 2px #C51C8A; box-shadow: 1px 1px 3px 2px #C51C8A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #C51C8A; -webkit-box-shadow: 1px 1px 3px 2px #C51C8A; box-shadow:1px 1px 3px 2px #C51C8A;">
Div content here</div>
This text has color #C51C8A on black background.
This text has color #C51C8A on white background.
This text has black color on #C51C8A background.
This text has white color on #C51C8A background.