HEX: #A831DF
RGB: (168,49,223)
#A831DF contains mainly red and blue colors. Web safe color of #A831DF is #9933CC (or #93C).
#A831DF color RGB value is (168,49,223).
RGB: (168,49,223) (66%,19%,87%)
R 168 of 255 = 66%
G 49 of 255 = 19%
B 223 of 255 = 87%
R + G + B ~ 57%. #A831DF is middle color (not dark and not light).
R + G + B =
168 + 49 + 223 = 440 (100%)
R 168 of 440 ~ 38.18%
G 49 of 440 ~ 11.14%
B 223 of 440 ~ 50.68%
#A831DF color CMYK value is (25,78,0,13).
CMYK: (25,78,0,13) C25M78Y0K13 (25%,78%,0%,13%) (0.25/0.78/0.00/0.13)
A8 | 31 | DF | |
---|---|---|---|
RGB | 168 | 49 | 223 |
HSL | 281° | 73.11% | 53.33% |
HSB/HSV | 281° | 78.03% | 87.45% |
CMYK | 24.66% | 78.03% | 0.00% |
12.55% |
HEX | A8 | 31 | DF |
Decimal | 168 | 49 | 223 |
Binary | 10101000 | 110001 | 11011111 |
Octal | 250 | 61 | 337 |
Examples of css and html codes for elements with #A831DF color. Also use rgb(168,49,223) instead hex code.
.myTextColor { color: #A831DF; }
<p style="color:#A831DF">This sample text font color is #A831DF.</p>
This text font color is #A831DF.
.myBgColor { background-color: #A831DF; }
<div style="background-color:#A831DF">Inner text</div>
This div background color is #A831DF.
.myBorderColor { border: 1px solid #A831DF; }
<div style="border:3px solid #A831DF">Div</div>
This div border color is #A831DF.
.myOpacity80 { color: #A831DF; opacity: 0.8; }
<p style="color:#A831DF;opacity:0.8;">80%</p>
Text with #A831DF color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #A831DF;}
<p style="text-shadow: 3px 3px 1px #A831DF">Text here.</p>
This text has shadow with #A831DF color.
.textShadow {text-shadow: 3px 3px 1px #A831DF, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #A831DF, 5px 5px 20px red">Text here.</p>
This text has shadow with #A831DF primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#A831DF, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#A831DF, Direction=45, Strength=4)">Text</p>
This text has shadow with #A831DF and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #A831DF; -webkit-box-shadow: 1px 1px 3px 2px #A831DF; box-shadow: 1px 1px 3px 2px #A831DF; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #A831DF; -webkit-box-shadow: 1px 1px 3px 2px #A831DF; box-shadow:1px 1px 3px 2px #A831DF;">
Div content here</div>
This text has color #A831DF on black background.
This text has color #A831DF on white background.
This text has black color on #A831DF background.
This text has white color on #A831DF background.