HEX: #AB31EA
RGB: (171,49,234)
#AB31EA contains mainly blue color. Web safe color of #AB31EA is #9933FF (or #93F).
#AB31EA color RGB value is (171,49,234).
RGB: (171,49,234) (67%,19%,92%)
R 171 of 255 = 67%
G 49 of 255 = 19%
B 234 of 255 = 92%
R + G + B ~ 59%. #AB31EA is middle color (not dark and not light).
R + G + B =
171 + 49 + 234 = 454 (100%)
R 171 of 454 ~ 37.67%
G 49 of 454 ~ 10.79%
B 234 of 454 ~ 51.54%
#AB31EA color CMYK value is (27,79,0,8).
CMYK: (27,79,0,8) C27M79Y0K8 (27%,79%,0%,8%) (0.27/0.79/0.00/0.08)
AB | 31 | EA | |
---|---|---|---|
RGB | 171 | 49 | 234 |
HSL | 280° | 81.50% | 55.49% |
HSB/HSV | 280° | 79.06% | 91.76% |
CMYK | 26.92% | 79.06% | 0.00% |
8.24% |
HEX | AB | 31 | EA |
Decimal | 171 | 49 | 234 |
Binary | 10101011 | 110001 | 11101010 |
Octal | 253 | 61 | 352 |
Examples of css and html codes for elements with #AB31EA color. Also use rgb(171,49,234) instead hex code.
.myTextColor { color: #AB31EA; }
<p style="color:#AB31EA">This sample text font color is #AB31EA.</p>
This text font color is #AB31EA.
.myBgColor { background-color: #AB31EA; }
<div style="background-color:#AB31EA">Inner text</div>
This div background color is #AB31EA.
.myBorderColor { border: 1px solid #AB31EA; }
<div style="border:3px solid #AB31EA">Div</div>
This div border color is #AB31EA.
.myOpacity80 { color: #AB31EA; opacity: 0.8; }
<p style="color:#AB31EA;opacity:0.8;">80%</p>
Text with #AB31EA color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AB31EA;}
<p style="text-shadow: 3px 3px 1px #AB31EA">Text here.</p>
This text has shadow with #AB31EA color.
.textShadow {text-shadow: 3px 3px 1px #AB31EA, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AB31EA, 5px 5px 20px red">Text here.</p>
This text has shadow with #AB31EA primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AB31EA, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AB31EA, Direction=45, Strength=4)">Text</p>
This text has shadow with #AB31EA and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AB31EA; -webkit-box-shadow: 1px 1px 3px 2px #AB31EA; box-shadow: 1px 1px 3px 2px #AB31EA; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AB31EA; -webkit-box-shadow: 1px 1px 3px 2px #AB31EA; box-shadow:1px 1px 3px 2px #AB31EA;">
Div content here</div>
This text has color #AB31EA on black background.
This text has color #AB31EA on white background.
This text has black color on #AB31EA background.
This text has white color on #AB31EA background.