HEX: #516D8C
RGB: (81,109,140)
#516D8C enthält rote, grüne und blaue Farben ungefähr im gleichen Verhältnis. Für #516D8C ist eine «websichere» Webfarbe #666699 (oder kurz #669).
Die Farbe #516D8C wird in RGB als (81,109,140) definiert.
RGB: (81,109,140) (32%,43%,55%)
R 81 von 255 = 32%
G 109 von 255 = 43%
B 140 von 255 = 55%
R + G + B ~ 43%. #516D8C mittlere Farbe (nicht dunkel und nicht hell).
R + G + B =
81 + 109 + 140 = 330 (100%)
R 81 von 330 ~ 24.55%
G 109 von 330 ~ 33.03%
B 140 von 330 ~ 42.42%
Die Farbe #516D8C wird in CMYK als (42,22,0,45) definiert.
CMYK: (42,22,0,45) C42M22Y0K45 (42%,22%,0%,45%) (0.42/0.22/0.00/0.45)
51 | 6D | 8C | |
---|---|---|---|
RGB | 81 | 109 | 140 |
HSL | 212° | 26.70% | 43.33% |
HSB/HSV | 212° | 42.14% | 54.90% |
CMYK | 42.14% | 22.14% | 0.00% |
45.10% |
Hexadezimal | 51 | 6D | 8C |
Dezimal | 81 | 109 | 140 |
Binär | 1010001 | 1101101 | 10001100 |
Oktal | 121 | 155 | 214 |
Beispiele css- und html für Elemente in der Farbe #516D8C. Bitte benutzen Sie auch rgb(81,109,140) statt hex-Code.
.myTextColor { color: #516D8C; }
<p style="color:#516D8C">This sample text font color is #516D8C.</p>
Die Farbe dieses Textes ist #516D8C.
.myBgColor { background-color: #516D8C; }
<div style="background-color:#516D8C">Inner text</div>
Der Hintergrund von diesem div ist in Farbe #516D8C.
.myBorderColor { border: 1px solid #516D8C; }
<div style="border:3px solid #516D8C">Div</div>
Die Grenzen von diesem div sind in Farbe #516D8C.
.myOpacity80 { color: #516D8C; opacity: 0.8; }
<p style="color:#516D8C;opacity:0.8;">80%</p>
Text in Farbe #516D8C und mit Transparenz 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #516D8C;}
<p style="text-shadow: 3px 3px 1px #516D8C">Text here.</p>
Dieser Text hat den Schatten in Farbe #516D8C.
.textShadow {text-shadow: 3px 3px 1px #516D8C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #516D8C, 5px 5px 20px red">Text here.</p>
Dieser Text hat den Schatten in Grundfarbe #516D8C und zusätzlichem Rot.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#516D8C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#516D8C, Direction=45, Strength=4)">Text</p>
This text has shadow with #516D8C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #516D8C; -webkit-box-shadow: 1px 1px 3px 2px #516D8C; box-shadow: 1px 1px 3px 2px #516D8C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #516D8C; -webkit-box-shadow: 1px 1px 3px 2px #516D8C; box-shadow:1px 1px 3px 2px #516D8C;">
Div content here</div>
Dieser Text ist in der Farbe #516D8C auf dem schwarzen Hintergrund.
Dieser Text ist in Farbe #516D8C auf dem weißen Hintergrund.
Dieser Text ist schwarz auf dem Hintergrund in Farbe #516D8C.
Dieser Text ist weiß auf dem Hintergrund in Farbe #516D8C.