HEX: #AB1D2A
RGB: (171,29,42)
#AB1D2A contains mainly red color. Web safe color of #AB1D2A is #993333 (or #933).
#AB1D2A color RGB value is (171,29,42).
RGB: (171,29,42) (67%,11%,16%)
R 171 of 255 = 67%
G 29 of 255 = 11%
B 42 of 255 = 16%
R + G + B ~ 31%. #AB1D2A is quite dark color.
R + G + B =
171 + 29 + 42 = 242 (100%)
R 171 of 242 ~ 70.66%
G 29 of 242 ~ 11.98%
B 42 of 242 ~ 17.36%
#AB1D2A color CMYK value is (0,83,75,33).
CMYK: (0,83,75,33) C0M83Y75K33 (0%,83%,75%,33%) (0.00/0.83/0.75/0.33)
AB | 1D | 2A | |
---|---|---|---|
RGB | 171 | 29 | 42 |
HSL | 355° | 71.00% | 39.22% |
HSB/HSV | 355° | 83.04% | 67.06% |
CMYK | 0.00% | 83.04% | 75.44% |
32.94% |
HEX | AB | 1D | 2A |
Decimal | 171 | 29 | 42 |
Binary | 10101011 | 11101 | 101010 |
Octal | 253 | 35 | 52 |
Examples of css and html codes for elements with #AB1D2A color. Also use rgb(171,29,42) instead hex code.
.myTextColor { color: #AB1D2A; }
<p style="color:#AB1D2A">This sample text font color is #AB1D2A.</p>
This text font color is #AB1D2A.
.myBgColor { background-color: #AB1D2A; }
<div style="background-color:#AB1D2A">Inner text</div>
This div background color is #AB1D2A.
.myBorderColor { border: 1px solid #AB1D2A; }
<div style="border:3px solid #AB1D2A">Div</div>
This div border color is #AB1D2A.
.myOpacity80 { color: #AB1D2A; opacity: 0.8; }
<p style="color:#AB1D2A;opacity:0.8;">80%</p>
Text with #AB1D2A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AB1D2A;}
<p style="text-shadow: 3px 3px 1px #AB1D2A">Text here.</p>
This text has shadow with #AB1D2A color.
.textShadow {text-shadow: 3px 3px 1px #AB1D2A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AB1D2A, 5px 5px 20px red">Text here.</p>
This text has shadow with #AB1D2A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AB1D2A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AB1D2A, Direction=45, Strength=4)">Text</p>
This text has shadow with #AB1D2A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AB1D2A; -webkit-box-shadow: 1px 1px 3px 2px #AB1D2A; box-shadow: 1px 1px 3px 2px #AB1D2A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AB1D2A; -webkit-box-shadow: 1px 1px 3px 2px #AB1D2A; box-shadow:1px 1px 3px 2px #AB1D2A;">
Div content here</div>
This text has color #AB1D2A on black background.
This text has color #AB1D2A on white background.
This text has black color on #AB1D2A background.
This text has white color on #AB1D2A background.