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 #00ff00 | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift #00ff00 | |
Farbe | : | olive | Farbwert | : | #00ff00 | |
Farbwert | : | #808000 | Farbe | : | lime | |
HTML | : | olive | HTML | : | #00ff00 | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #00ff00 | |
CSS | : | olive | CSS | : | #00ff00 | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #00ff00 | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #0f0 | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(0,255,0) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(0%,100%,0%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbwert #00ff00 | |||||||
#808000 | #6d9200 | #5ba400 | #49b600 | #36c800 | #24da00 | #12ec00 | #00ff00 |
#808000 | #6d9200 | #5ba400 | #49b600 | #36c800 | #24da00 | #12ec00 | #00ff00 |
Kombination von olive und #00ff00 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. | Die Ähnlichkeit von #00ff00 und olive ergibt sich zu 85.44%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 14.56%. #00ff00 ist nicht als Schriftfarbe auf Hintergrund olive geeignet, da sich die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbe olive | Schriftfarbwert #00ff00 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #00ff00 | #00ff00 | #00ff00 | #00ff00 |
#929224 | #929224 | #6d6d00 | #6d6d00 | #24ff24 | #24ff24 | #00da00 | #00da00 |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #48ff48 | #48ff48 | #00b600 | #00b600 |
#b6b66d | #b6b66d | #494900 | #494900 | #6dff6d | #6dff6d | #009100 | #009100 |
#c8c891 | #c8c891 | #363600 | #363600 | #91ff91 | #91ff91 | #006d00 | #006d00 |
#dadab6 | #dadab6 | #242400 | #242400 | #b6ffb6 | #b6ffb6 | #004800 | #004800 |
#ececda | #ececda | #121200 | #121200 | #daffda | #daffda | #002400 | #002400 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <span> mit einem gefurchten, 1 Punkte dicken Rahmen in Farbwert #00ff00 . Die Hintergrundfarbe für <span> setzen wir auf Farbe olive. Das ist mit HTML nicht möglich. Deshalb nutzen wir CSS.
<style type="text/css"><!-- span { border-style:groove; background-color:olive; border-width:1pt; border-color:#00ff00; } //--> </style>
Weiteres zum HTML-Befehl <span>.
Wir ändern für dieses Beispiel die Textfarbe von <kbd> auf Farbwert #00ff00. Die Schriftart ändern wir auf courier new. Die Schriftgröße vergrößern wir auf 115%. Wir unterstreichen den Inhalt von <kbd> mit Hilfe eines doppelten Rahmens mit 3 Punkte Dicke in Farbe olive. Das ist in HTML so kaum möglich. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- kbd { color: #0f0; border-bottom-style: double; font-family: courier new; border-bottom-color: olive; border-bottom-width: 3pt; font-size: 115%; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema erfahren Sie in Text in HTML. Beschreibung vom hier genutzten HTML-Befehl <kbd>.
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 |