HEX: #8A74AB
RGB: (138,116,171)
#8A74AB contains red, green and blue colors in about the same proportion. Web safe color of #8A74AB is #996699 (or #969).
#8A74AB color RGB value is (138,116,171).
RGB: (138,116,171) (54%,45%,67%)
R 138 of 255 = 54%
G 116 of 255 = 45%
B 171 of 255 = 67%
R + G + B ~ 55%. #8A74AB is middle color (not dark and not light).
R + G + B =
138 + 116 + 171 = 425 (100%)
R 138 of 425 ~ 32.47%
G 116 of 425 ~ 27.29%
B 171 of 425 ~ 40.24%
#8A74AB color CMYK value is (19,32,0,33).
CMYK: (19,32,0,33) C19M32Y0K33 (19%,32%,0%,33%) (0.19/0.32/0.00/0.33)
8A | 74 | AB | |
---|---|---|---|
RGB | 138 | 116 | 171 |
HSL | 264° | 24.66% | 56.27% |
HSB/HSV | 264° | 32.16% | 67.06% |
CMYK | 19.30% | 32.16% | 0.00% |
32.94% |
HEX | 8A | 74 | AB |
Decimal | 138 | 116 | 171 |
Binary | 10001010 | 1110100 | 10101011 |
Octal | 212 | 164 | 253 |
Examples of css and html codes for elements with #8A74AB color. Also use rgb(138,116,171) instead hex code.
.myTextColor { color: #8A74AB; }
<p style="color:#8A74AB">This sample text font color is #8A74AB.</p>
This text font color is #8A74AB.
.myBgColor { background-color: #8A74AB; }
<div style="background-color:#8A74AB">Inner text</div>
This div background color is #8A74AB.
.myBorderColor { border: 1px solid #8A74AB; }
<div style="border:3px solid #8A74AB">Div</div>
This div border color is #8A74AB.
.myOpacity80 { color: #8A74AB; opacity: 0.8; }
<p style="color:#8A74AB;opacity:0.8;">80%</p>
Text with #8A74AB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8A74AB;}
<p style="text-shadow: 3px 3px 1px #8A74AB">Text here.</p>
This text has shadow with #8A74AB color.
.textShadow {text-shadow: 3px 3px 1px #8A74AB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8A74AB, 5px 5px 20px red">Text here.</p>
This text has shadow with #8A74AB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8A74AB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8A74AB, Direction=45, Strength=4)">Text</p>
This text has shadow with #8A74AB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8A74AB; -webkit-box-shadow: 1px 1px 3px 2px #8A74AB; box-shadow: 1px 1px 3px 2px #8A74AB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8A74AB; -webkit-box-shadow: 1px 1px 3px 2px #8A74AB; box-shadow:1px 1px 3px 2px #8A74AB;">
Div content here</div>
This text has color #8A74AB on black background.
This text has color #8A74AB on white background.
This text has black color on #8A74AB background.
This text has white color on #8A74AB background.