HEX: #AB42C1
RGB: (171,66,193)
#AB42C1 contains mainly red and blue colors. Web safe color of #AB42C1 is #9933CC (or #93C).
#AB42C1 color RGB value is (171,66,193).
RGB: (171,66,193) (67%,26%,76%)
R 171 of 255 = 67%
G 66 of 255 = 26%
B 193 of 255 = 76%
R + G + B ~ 56%. #AB42C1 is middle color (not dark and not light).
R + G + B =
171 + 66 + 193 = 430 (100%)
R 171 of 430 ~ 39.77%
G 66 of 430 ~ 15.35%
B 193 of 430 ~ 44.88%
#AB42C1 color CMYK value is (11,66,0,24).
CMYK: (11,66,0,24) C11M66Y0K24 (11%,66%,0%,24%) (0.11/0.66/0.00/0.24)
AB | 42 | C1 | |
---|---|---|---|
RGB | 171 | 66 | 193 |
HSL | 290° | 50.60% | 50.78% |
HSB/HSV | 290° | 65.80% | 75.69% |
CMYK | 11.40% | 65.80% | 0.00% |
24.31% |
HEX | AB | 42 | C1 |
Decimal | 171 | 66 | 193 |
Binary | 10101011 | 1000010 | 11000001 |
Octal | 253 | 102 | 301 |
Examples of css and html codes for elements with #AB42C1 color. Also use rgb(171,66,193) instead hex code.
.myTextColor { color: #AB42C1; }
<p style="color:#AB42C1">This sample text font color is #AB42C1.</p>
This text font color is #AB42C1.
.myBgColor { background-color: #AB42C1; }
<div style="background-color:#AB42C1">Inner text</div>
This div background color is #AB42C1.
.myBorderColor { border: 1px solid #AB42C1; }
<div style="border:3px solid #AB42C1">Div</div>
This div border color is #AB42C1.
.myOpacity80 { color: #AB42C1; opacity: 0.8; }
<p style="color:#AB42C1;opacity:0.8;">80%</p>
Text with #AB42C1 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AB42C1;}
<p style="text-shadow: 3px 3px 1px #AB42C1">Text here.</p>
This text has shadow with #AB42C1 color.
.textShadow {text-shadow: 3px 3px 1px #AB42C1, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AB42C1, 5px 5px 20px red">Text here.</p>
This text has shadow with #AB42C1 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AB42C1, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AB42C1, Direction=45, Strength=4)">Text</p>
This text has shadow with #AB42C1 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AB42C1; -webkit-box-shadow: 1px 1px 3px 2px #AB42C1; box-shadow: 1px 1px 3px 2px #AB42C1; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AB42C1; -webkit-box-shadow: 1px 1px 3px 2px #AB42C1; box-shadow:1px 1px 3px 2px #AB42C1;">
Div content here</div>
This text has color #AB42C1 on black background.
This text has color #AB42C1 on white background.
This text has black color on #AB42C1 background.
This text has white color on #AB42C1 background.