von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
HTML verfügt seit jeher über 17 Standard Farbnamen.
Sie entstehen dadurch, dass die 8 Grundfarben jeweils maximal und zu 50% enthalten sind.
Zu diesen 16 Farben kommt mit grey eine alternative Schreibweise für gray.
Hintergrundfarbe olive | Schriftfarbwert #808080 | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift #808080 | |
Farbe | : | olive | Farbwert | : | #808080 | |
Farbwert | : | #808000 | Farbe | : | gray | |
HTML | : | olive | HTML | : | #808080 | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #808080 | |
CSS | : | olive | CSS | : | #808080 | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #808080 | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #808080 | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(128,128,128) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(50%,50%,50%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbwert #808080 | |||||||
#808000 | #808012 | #808024 | #808036 | #808049 | #80805b | #80806d | #808080 |
#808000 | #808012 | #808024 | #808036 | #808049 | #80805b | #80806d | #808080 |
Kombination von olive und #808080 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | #808080 ist nicht als Schriftfarbe auf Hintergrund olive geeignet, da die Unterschiede in der Helligkeit und Farbe zu gering sind. Die Ähnlichkeit der Farben #808080 und olive ergibt sich zu 94.94%. Die Lesbarkeit dieser Kombination liegt damit bei 5.06%. |
Hintergrundfarbe olive | Schriftfarbwert #808080 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #808080 | #808080 | #808080 | #808080 |
#929224 | #929224 | #6d6d00 | #6d6d00 | #929292 | #929292 | #6d6d6d | #6d6d6d |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b |
#b6b66d | #b6b66d | #494900 | #494900 | #b6b6b6 | #b6b6b6 | #494949 | #494949 |
#c8c891 | #c8c891 | #363600 | #363600 | #c8c8c8 | #c8c8c8 | #363636 | #363636 |
#dadab6 | #dadab6 | #242400 | #242400 | #dadada | #dadada | #242424 | #242424 |
#ececda | #ececda | #121200 | #121200 | #ececec | #ececec | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Mit Befehl <a> wird ein Hyperlink gesetzt. Diesen kann man farblich gestalten und hervorheben.
Hier umranden wir <a> mit einem 5 Punkte dicken, gepunkteten Rahmen in Farbwert #808080 . Den Hintergrund von <a> färben wir entsprechend mit Farbe olive. Das geht in HTML kaum. Deshalb formatieren wir hier mit CSS.
<style type="text/css"><!-- a { background-color:olive; border-color:#808080; border-style:dotted; border-width:5pt; } //--> </style>
Mehr zu a können Sie in Verweise und Protokolle in HTML erfahren. Einzelheiten des Befehl a sind in der HTML Referenz bei <a> genau beschrieben.
Wir ändern hier die Textfarbe von <p> auf Farbwert #808080 und die Hintergrundfarbe von <p> auf Farbe olive. Als Schriftart setzen wir sans-serif und als Schriftgröße entscheiden wir uns für 85%.
<style type="text/css"><!-- p { font-size:85%; font-family:sans-serif; background-color:olive; color:#808080; } //--> </style>
Weiteres zum Thema können Sie in Grundlegende Gestaltungselemente in HTML lesen. Der hier gezeigte Befehl p ist in der HTML Referenz bei <p> genau beschrieben.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / olive | |
black | #000000 | + | black | #000000 | black / olive | |
blue | #0000ff | + | blue | #0000ff | blue / olive | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / olive | |
gray | #808080 | + | gray | #808080 | gray / olive | |
grey | #808080 | + | grey | #808080 | grey / olive | |
green | #008000 | + | green | #008000 | green / olive | |
lime | #00ff00 | + | lime | #00ff00 | lime / olive | |
maroon | #800000 | + | maroon | #800000 | maroon / olive | |
navy | #000080 | + | navy | #000080 | navy / olive | |
olive | #808000 | + | olive | #808000 | olive / olive | |
purple | #800080 | + | purple | #800080 | purple / olive | |
red | #ff0000 | + | red | #ff0000 | red / olive | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / olive | |
teal | #008080 | + | teal | #008080 | teal / olive | |
white | #ffffff | + | white | #ffffff | white / olive | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / olive |