HEX: #A6227D
RGB: (166,34,125)
#A6227D contains mainly red and blue colors. Web safe color of #A6227D is #993366 (or #936).
#A6227D color RGB value is (166,34,125).
RGB: (166,34,125) (65%,13%,49%)
R 166 of 255 = 65%
G 34 of 255 = 13%
B 125 of 255 = 49%
R + G + B ~ 42%. #A6227D is middle color (not dark and not light).
R + G + B =
166 + 34 + 125 = 325 (100%)
R 166 of 325 ~ 51.08%
G 34 of 325 ~ 10.46%
B 125 of 325 ~ 38.46%
#A6227D color CMYK value is (0,80,25,35).
CMYK: (0,80,25,35) C0M80Y25K35 (0%,80%,25%,35%) (0.00/0.80/0.25/0.35)
A6 | 22 | 7D | |
---|---|---|---|
RGB | 166 | 34 | 125 |
HSL | 319° | 66.00% | 39.22% |
HSB/HSV | 319° | 79.52% | 65.10% |
CMYK | 0.00% | 79.52% | 24.70% |
34.90% |
HEX | A6 | 22 | 7D |
Decimal | 166 | 34 | 125 |
Binary | 10100110 | 100010 | 1111101 |
Octal | 246 | 42 | 175 |
Examples of css and html codes for elements with #A6227D color. Also use rgb(166,34,125) instead hex code.
.myTextColor { color: #A6227D; }
<p style="color:#A6227D">This sample text font color is #A6227D.</p>
This text font color is #A6227D.
.myBgColor { background-color: #A6227D; }
<div style="background-color:#A6227D">Inner text</div>
This div background color is #A6227D.
.myBorderColor { border: 1px solid #A6227D; }
<div style="border:3px solid #A6227D">Div</div>
This div border color is #A6227D.
.myOpacity80 { color: #A6227D; opacity: 0.8; }
<p style="color:#A6227D;opacity:0.8;">80%</p>
Text with #A6227D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #A6227D;}
<p style="text-shadow: 3px 3px 1px #A6227D">Text here.</p>
This text has shadow with #A6227D color.
.textShadow {text-shadow: 3px 3px 1px #A6227D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #A6227D, 5px 5px 20px red">Text here.</p>
This text has shadow with #A6227D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#A6227D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#A6227D, Direction=45, Strength=4)">Text</p>
This text has shadow with #A6227D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #A6227D; -webkit-box-shadow: 1px 1px 3px 2px #A6227D; box-shadow: 1px 1px 3px 2px #A6227D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #A6227D; -webkit-box-shadow: 1px 1px 3px 2px #A6227D; box-shadow:1px 1px 3px 2px #A6227D;">
Div content here</div>
This text has color #A6227D on black background.
This text has color #A6227D on white background.
This text has black color on #A6227D background.
This text has white color on #A6227D background.