HEX: #AF398A
RGB: (175,57,138)
#AF398A contains mainly red and blue colors. Web safe color of #AF398A is #993399 (or #939).
#AF398A color RGB value is (175,57,138).
RGB: (175,57,138) (69%,22%,54%)
R 175 of 255 = 69%
G 57 of 255 = 22%
B 138 of 255 = 54%
R + G + B ~ 48%. #AF398A is middle color (not dark and not light).
R + G + B =
175 + 57 + 138 = 370 (100%)
R 175 of 370 ~ 47.3%
G 57 of 370 ~ 15.41%
B 138 of 370 ~ 37.3%
#AF398A color CMYK value is (0,67,21,31).
CMYK: (0,67,21,31) C0M67Y21K31 (0%,67%,21%,31%) (0.00/0.67/0.21/0.31)
AF | 39 | 8A | |
---|---|---|---|
RGB | 175 | 57 | 138 |
HSL | 319° | 50.86% | 45.49% |
HSB/HSV | 319° | 67.43% | 68.63% |
CMYK | 0.00% | 67.43% | 21.14% |
31.37% |
HEX | AF | 39 | 8A |
Decimal | 175 | 57 | 138 |
Binary | 10101111 | 111001 | 10001010 |
Octal | 257 | 71 | 212 |
Examples of css and html codes for elements with #AF398A color. Also use rgb(175,57,138) instead hex code.
.myTextColor { color: #AF398A; }
<p style="color:#AF398A">This sample text font color is #AF398A.</p>
This text font color is #AF398A.
.myBgColor { background-color: #AF398A; }
<div style="background-color:#AF398A">Inner text</div>
This div background color is #AF398A.
.myBorderColor { border: 1px solid #AF398A; }
<div style="border:3px solid #AF398A">Div</div>
This div border color is #AF398A.
.myOpacity80 { color: #AF398A; opacity: 0.8; }
<p style="color:#AF398A;opacity:0.8;">80%</p>
Text with #AF398A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AF398A;}
<p style="text-shadow: 3px 3px 1px #AF398A">Text here.</p>
This text has shadow with #AF398A color.
.textShadow {text-shadow: 3px 3px 1px #AF398A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AF398A, 5px 5px 20px red">Text here.</p>
This text has shadow with #AF398A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AF398A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AF398A, Direction=45, Strength=4)">Text</p>
This text has shadow with #AF398A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AF398A; -webkit-box-shadow: 1px 1px 3px 2px #AF398A; box-shadow: 1px 1px 3px 2px #AF398A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AF398A; -webkit-box-shadow: 1px 1px 3px 2px #AF398A; box-shadow:1px 1px 3px 2px #AF398A;">
Div content here</div>
This text has color #AF398A on black background.
This text has color #AF398A on white background.
This text has black color on #AF398A background.
This text has white color on #AF398A background.