HEX: #AB5CBA
RGB: (171,92,186)
#AB5CBA contains mainly red and blue colors. Web safe color of #AB5CBA is #9966CC (or #96C).
#AB5CBA color RGB value is (171,92,186).
RGB: (171,92,186) (67%,36%,73%)
R 171 of 255 = 67%
G 92 of 255 = 36%
B 186 of 255 = 73%
R + G + B ~ 59%. #AB5CBA is middle color (not dark and not light).
R + G + B =
171 + 92 + 186 = 449 (100%)
R 171 of 449 ~ 38.08%
G 92 of 449 ~ 20.49%
B 186 of 449 ~ 41.43%
#AB5CBA color CMYK value is (8,51,0,27).
CMYK: (8,51,0,27) C8M51Y0K27 (8%,51%,0%,27%) (0.08/0.51/0.00/0.27)
AB | 5C | BA | |
---|---|---|---|
RGB | 171 | 92 | 186 |
HSL | 290° | 40.52% | 54.51% |
HSB/HSV | 290° | 50.54% | 72.94% |
CMYK | 8.06% | 50.54% | 0.00% |
27.06% |
HEX | AB | 5C | BA |
Decimal | 171 | 92 | 186 |
Binary | 10101011 | 1011100 | 10111010 |
Octal | 253 | 134 | 272 |
Examples of css and html codes for elements with #AB5CBA color. Also use rgb(171,92,186) instead hex code.
.myTextColor { color: #AB5CBA; }
<p style="color:#AB5CBA">This sample text font color is #AB5CBA.</p>
This text font color is #AB5CBA.
.myBgColor { background-color: #AB5CBA; }
<div style="background-color:#AB5CBA">Inner text</div>
This div background color is #AB5CBA.
.myBorderColor { border: 1px solid #AB5CBA; }
<div style="border:3px solid #AB5CBA">Div</div>
This div border color is #AB5CBA.
.myOpacity80 { color: #AB5CBA; opacity: 0.8; }
<p style="color:#AB5CBA;opacity:0.8;">80%</p>
Text with #AB5CBA color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AB5CBA;}
<p style="text-shadow: 3px 3px 1px #AB5CBA">Text here.</p>
This text has shadow with #AB5CBA color.
.textShadow {text-shadow: 3px 3px 1px #AB5CBA, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AB5CBA, 5px 5px 20px red">Text here.</p>
This text has shadow with #AB5CBA primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AB5CBA, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AB5CBA, Direction=45, Strength=4)">Text</p>
This text has shadow with #AB5CBA and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AB5CBA; -webkit-box-shadow: 1px 1px 3px 2px #AB5CBA; box-shadow: 1px 1px 3px 2px #AB5CBA; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AB5CBA; -webkit-box-shadow: 1px 1px 3px 2px #AB5CBA; box-shadow:1px 1px 3px 2px #AB5CBA;">
Div content here</div>
This text has color #AB5CBA on black background.
This text has color #AB5CBA on white background.
This text has black color on #AB5CBA background.
This text has white color on #AB5CBA background.