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 | Schriftfarbe teal | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift teal | |
Farbe | : | olive | Farbe | : | teal | |
Farbwert | : | #808000 | Farbwert | : | #008080 | |
HTML | : | olive | HTML | : | teal | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #008080 | |
CSS | : | olive | CSS | : | teal | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #008080 | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #008080 | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(0,128,128) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(0%,50%,50%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbe teal | |||||||
#808000 | #6d8012 | #5b8024 | #498036 | #368049 | #24805b | #12806d | #008080 |
#808000 | #6d8012 | #5b8024 | #498036 | #368049 | #24805b | #12806d | #008080 |
Kombination von olive und teal | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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. | teal ist nicht als Schriftfarbe auf Hintergrund olive geeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von teal und olive ergibt sich zu 94.58%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 5.42%. |
Hintergrundfarbe olive | Schriftfarbe teal | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #008080 | #008080 | #008080 | #008080 |
#929224 | #929224 | #6d6d00 | #6d6d00 | #249292 | #249292 | #006d6d | #006d6d |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #48a4a4 | #48a4a4 | #005b5b | #005b5b |
#b6b66d | #b6b66d | #494900 | #494900 | #6db6b6 | #6db6b6 | #004949 | #004949 |
#c8c891 | #c8c891 | #363600 | #363600 | #91c8c8 | #91c8c8 | #003636 | #003636 |
#dadab6 | #dadab6 | #242400 | #242400 | #b6dada | #b6dada | #002424 | #002424 |
#ececda | #ececda | #121200 | #121200 | #daecec | #daecec | #001212 | #001212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Hintergrundfarbe soll sich von Farbe olive auf Farbe teal ändern, wenn man mit der Maus auf <samp> zeigt. Wir bereiten zunächst die Darstellung von <samp> in Farbe olive vor.
Wir legen in diesem Beispiel bei <samp> die Hintergrundfarbe auf Farbe olive fest:
<style type="text/css"><!-- samp { background-color:olive; } //--> </style>Jetzt stellen wir ein, dass sich bei Berührung mit der Maus die Hintergrundfarbe auf teal ändert.
<style type="text/css"><!-- samp:hover { background-color:teal; } //--> </style>
Mehr zu samp finden Sie in Text in HTML. Die Beschreibung des HTML-Tag samp lesen Sie in der HTML Referenz unter <samp>.
Eine Überschrift setzen Sie mit HTML-Tag <h6>. Sie kann farblich gestaltet werden.
Wir ändern Hher die Textfarbe von <h6> auf Farbe teal. Die Schriftart setzen wir auf verdana. Die Schriftgröße erhöhen wir auf 122%. Wir unterstreichen den Inhalt von <h6> mit Hilfe eines gepunkteten Rahmens mit 3 Pixel Dicke in Farbe olive. Das ist mit HTML so kaum möglich. Wir nutzen deshalb CSS.
<style type="text/css"><!-- h6 { color:teal; border-bottom:3px dotted olive; font-size:122%; font-family:verdana; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema h6 können Sie in Grundlegende Gestaltungselemente in HTML nachsehen. Weiteres zum hier gezeigten Tag <h6>.
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 |