HEX: #51508C
RGB: (81,80,140)
#51508C enthält hauptsächlich rote und blaue Farbe. Für #51508C ist eine «websichere» Webfarbe #666699 (oder kurz #669).
Die Farbe #51508C wird in RGB als (81,80,140) definiert.
RGB: (81,80,140) (32%,31%,55%)
R 81 von 255 = 32%
G 80 von 255 = 31%
B 140 von 255 = 55%
R + G + B ~ 39%. #51508C ziemlich dunkle Farbe.
R + G + B =
81 + 80 + 140 = 301 (100%)
R 81 von 301 ~ 26.91%
G 80 von 301 ~ 26.58%
B 140 von 301 ~ 46.51%
Die Farbe #51508C wird in CMYK als (42,43,0,45) definiert.
CMYK: (42,43,0,45) C42M43Y0K45 (42%,43%,0%,45%) (0.42/0.43/0.00/0.45)
51 | 50 | 8C | |
---|---|---|---|
RGB | 81 | 80 | 140 |
HSL | 241° | 27.27% | 43.14% |
HSB/HSV | 241° | 42.86% | 54.90% |
CMYK | 42.14% | 42.86% | 0.00% |
45.10% |
Hexadezimal | 51 | 50 | 8C |
Dezimal | 81 | 80 | 140 |
Binär | 1010001 | 1010000 | 10001100 |
Oktal | 121 | 120 | 214 |
Beispiele css- und html für Elemente in der Farbe #51508C. Bitte benutzen Sie auch rgb(81,80,140) statt hex-Code.
.myTextColor { color: #51508C; }
<p style="color:#51508C">This sample text font color is #51508C.</p>
Die Farbe dieses Textes ist #51508C.
.myBgColor { background-color: #51508C; }
<div style="background-color:#51508C">Inner text</div>
Der Hintergrund von diesem div ist in Farbe #51508C.
.myBorderColor { border: 1px solid #51508C; }
<div style="border:3px solid #51508C">Div</div>
Die Grenzen von diesem div sind in Farbe #51508C.
.myOpacity80 { color: #51508C; opacity: 0.8; }
<p style="color:#51508C;opacity:0.8;">80%</p>
Text in Farbe #51508C und mit Transparenz 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #51508C;}
<p style="text-shadow: 3px 3px 1px #51508C">Text here.</p>
Dieser Text hat den Schatten in Farbe #51508C.
.textShadow {text-shadow: 3px 3px 1px #51508C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #51508C, 5px 5px 20px red">Text here.</p>
Dieser Text hat den Schatten in Grundfarbe #51508C und zusätzlichem Rot.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#51508C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#51508C, Direction=45, Strength=4)">Text</p>
This text has shadow with #51508C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #51508C; -webkit-box-shadow: 1px 1px 3px 2px #51508C; box-shadow: 1px 1px 3px 2px #51508C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #51508C; -webkit-box-shadow: 1px 1px 3px 2px #51508C; box-shadow:1px 1px 3px 2px #51508C;">
Div content here</div>
Dieser Text ist in der Farbe #51508C auf dem schwarzen Hintergrund.
Dieser Text ist in Farbe #51508C auf dem weißen Hintergrund.
Dieser Text ist schwarz auf dem Hintergrund in Farbe #51508C.
Dieser Text ist weiß auf dem Hintergrund in Farbe #51508C.