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 maroon | Schriftfarbwert #c0c0c0 | |||||
Detail | : | Hintergrund maroon | Detail | : | Schrift #c0c0c0 | |
Farbe | : | maroon | Farbwert | : | #c0c0c0 | |
Farbwert | : | #800000 | Farbe | : | silver | |
HTML | : | maroon | HTML | : | #c0c0c0 | |
HTML (Wert) | : | #800000 | HTML (Wert) | : | #c0c0c0 | |
CSS | : | maroon | CSS | : | #c0c0c0 | |
CSS (Wert) | : | #800000 | CSS (Wert) | : | #c0c0c0 | |
CSS (kürzest) | : | #800000 | CSS (kürzest) | : | #c0c0c0 | |
CSS (RGB) | : | rgb(128,0,0) | CSS (RGB) | : | rgb(192,192,192) | |
CSS (%RGB) | : | rgb(50%,0%,0%) | CSS (%RGB) | : | rgb(75%,75%,75%) |
Verlauf Hintergrundfarbe maroon nach Schriftfarbwert #c0c0c0 | |||||||
#800000 | #891b1b | #923636 | #9b5252 | #a46d6d | #ad8989 | #b6a4a4 | #c0c0c0 |
#800000 | #891b1b | #923636 | #9b5252 | #a46d6d | #ad8989 | #b6a4a4 | #c0c0c0 |
Kombination von maroon und #c0c0c0 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | Die Ähnlichkeit von #c0c0c0 und maroon beträgt 71.34%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 28.66%. #c0c0c0 ist nicht als Schriftfarbe auf Hintergrund maroon geeignet, da die Farben zu ähnlich sind. |
Hintergrundfarbe maroon | Schriftfarbwert #c0c0c0 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#800000 | #800000 | #800000 | #800000 | #c0c0c0 | #c0c0c0 | #c0c0c0 | #c0c0c0 |
#922424 | #922424 | #6d0000 | #6d0000 | #c9c9c9 | #c9c9c9 | #a4a4a4 | #a4a4a4 |
#a44848 | #a44848 | #5b0000 | #5b0000 | #d2d2d2 | #d2d2d2 | #898989 | #898989 |
#b66d6d | #b66d6d | #490000 | #490000 | #dbdbdb | #dbdbdb | #6d6d6d | #6d6d6d |
#c89191 | #c89191 | #360000 | #360000 | #e4e4e4 | #e4e4e4 | #525252 | #525252 |
#dab6b6 | #dab6b6 | #240000 | #240000 | #ededed | #ededed | #363636 | #363636 |
#ecdada | #ecdada | #120000 | #120000 | #f6f6f6 | #f6f6f6 | #1b1b1b | #1b1b1b |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe maroon auf Farbwert #c0c0c0 ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst eine Formatierung von <tfoot> in Farbe maroon vor.
Zum Beispiel legen wir bei <tfoot> die Textfarbe auf Farbe maroon fest. Die Hintergrundfarbe ändern wir nicht. Die Schriftart setzen wir auf sans-serif. Die Schriftgröße setzen wir auf 13px:
<style type="text/css"><!-- tfoot { font-size:13px; color:maroon; font-family:sans-serif; } //--> </style>Nun stellen wir ein, dass bei Berührung mit der Maus die Textfarbe auf #c0c0c0 geändert wird.
<style type="text/css"><!-- tfoot:hover { color:#c0c0c0; } //--> </style>
Mehr zum Thema tfoot können Sie in Tabellen in HTML nachlesen. Möglichkeiten des hier verwendeten HTML-Tag <tfoot>.
Wir ändern für dieses Beispiel die Textfarbe von <blockquote> auf Farbwert #c0c0c0. Die Schriftart setzen wir auf courier new. Die Schriftgröße ändern wir auf 13px. Wir unterstreichen den Inhalt von <blockquote> mit Hilfe eines gefurchten Rahmens mit 4 Punkte Dicke in Farbe maroon. Das ist mit HTML so kaum möglich. Wir nutzen daher CSS.
<style type="text/css"><!-- blockquote { color:#c0c0c0; font-family:courier new; border-bottom:4pt groove maroon; font-size:13px; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema blockquote finden Sie in Blockorientierte Elemente in HTML. Der Tag blockquote ist in der HTML Referenz bei <blockquote> beschrieben.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / maroon | |
black | #000000 | + | black | #000000 | black / maroon | |
blue | #0000ff | + | blue | #0000ff | blue / maroon | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / maroon | |
gray | #808080 | + | gray | #808080 | gray / maroon | |
grey | #808080 | + | grey | #808080 | grey / maroon | |
green | #008000 | + | green | #008000 | green / maroon | |
lime | #00ff00 | + | lime | #00ff00 | lime / maroon | |
maroon | #800000 | + | maroon | #800000 | maroon / maroon | |
navy | #000080 | + | navy | #000080 | navy / maroon | |
olive | #808000 | + | olive | #808000 | olive / maroon | |
purple | #800080 | + | purple | #800080 | purple / maroon | |
red | #ff0000 | + | red | #ff0000 | red / maroon | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / maroon | |
teal | #008080 | + | teal | #008080 | teal / maroon | |
white | #ffffff | + | white | #ffffff | white / maroon | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / maroon |