HEX: #512E7A
RGB: (81,46,122)
#512E7A enthält hauptsächlich rote und blaue Farbe. Für #512E7A ist eine «websichere» Webfarbe #663366 (oder kurz #636).
Die Farbe #512E7A wird in RGB als (81,46,122) definiert.
RGB: (81,46,122) (32%,18%,48%)
R 81 von 255 = 32%
G 46 von 255 = 18%
B 122 von 255 = 48%
R + G + B ~ 33%. #512E7A ziemlich dunkle Farbe.
R + G + B =
81 + 46 + 122 = 249 (100%)
R 81 von 249 ~ 32.53%
G 46 von 249 ~ 18.47%
B 122 von 249 ~ 49%
Die Farbe #512E7A wird in CMYK als (34,62,0,52) definiert.
CMYK: (34,62,0,52) C34M62Y0K52 (34%,62%,0%,52%) (0.34/0.62/0.00/0.52)
51 | 2E | 7A | |
---|---|---|---|
RGB | 81 | 46 | 122 |
HSL | 268° | 45.24% | 32.94% |
HSB/HSV | 268° | 62.30% | 47.84% |
CMYK | 33.61% | 62.30% | 0.00% |
52.16% |
Hexadezimal | 51 | 2E | 7A |
Dezimal | 81 | 46 | 122 |
Binär | 1010001 | 101110 | 1111010 |
Oktal | 121 | 56 | 172 |
Beispiele css- und html für Elemente in der Farbe #512E7A. Bitte benutzen Sie auch rgb(81,46,122) statt hex-Code.
.myTextColor { color: #512E7A; }
<p style="color:#512E7A">This sample text font color is #512E7A.</p>
Die Farbe dieses Textes ist #512E7A.
.myBgColor { background-color: #512E7A; }
<div style="background-color:#512E7A">Inner text</div>
Der Hintergrund von diesem div ist in Farbe #512E7A.
.myBorderColor { border: 1px solid #512E7A; }
<div style="border:3px solid #512E7A">Div</div>
Die Grenzen von diesem div sind in Farbe #512E7A.
.myOpacity80 { color: #512E7A; opacity: 0.8; }
<p style="color:#512E7A;opacity:0.8;">80%</p>
Text in Farbe #512E7A und mit Transparenz 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #512E7A;}
<p style="text-shadow: 3px 3px 1px #512E7A">Text here.</p>
Dieser Text hat den Schatten in Farbe #512E7A.
.textShadow {text-shadow: 3px 3px 1px #512E7A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #512E7A, 5px 5px 20px red">Text here.</p>
Dieser Text hat den Schatten in Grundfarbe #512E7A und zusätzlichem Rot.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#512E7A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#512E7A, Direction=45, Strength=4)">Text</p>
This text has shadow with #512E7A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #512E7A; -webkit-box-shadow: 1px 1px 3px 2px #512E7A; box-shadow: 1px 1px 3px 2px #512E7A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #512E7A; -webkit-box-shadow: 1px 1px 3px 2px #512E7A; box-shadow:1px 1px 3px 2px #512E7A;">
Div content here</div>
Dieser Text ist in der Farbe #512E7A auf dem schwarzen Hintergrund.
Dieser Text ist in Farbe #512E7A auf dem weißen Hintergrund.
Dieser Text ist schwarz auf dem Hintergrund in Farbe #512E7A.
Dieser Text ist weiß auf dem Hintergrund in Farbe #512E7A.