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 #ff0000 | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift #ff0000 | |
Farbe | : | olive | Farbwert | : | #ff0000 | |
Farbwert | : | #808000 | Farbe | : | red | |
HTML | : | olive | HTML | : | #ff0000 | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #ff0000 | |
CSS | : | olive | CSS | : | #ff0000 | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #ff0000 | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #f00 | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(255,0,0) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(100%,0%,0%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbwert #ff0000 | |||||||
#808000 | #926d00 | #a45b00 | #b64900 | #c83600 | #da2400 | #ec1200 | #ff0000 |
#808000 | #926d00 | #a45b00 | #b64900 | #c83600 | #da2400 | #ec1200 | #ff0000 |
Kombination von olive und #ff0000 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. | #ff0000 ist nicht als Schriftfarbe auf Hintergrund olive geeignet. Die Helligkeit und Farben sind zu ähnlich. Die Ähnlichkeit der Farben #ff0000 und olive ergibt sich zu 95.00%. Die Lesbarkeit dieser Farbkombination liegt damit bei 5.00%. |
Hintergrundfarbe olive | Schriftfarbwert #ff0000 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #ff0000 | #ff0000 | #ff0000 | #ff0000 |
#929224 | #929224 | #6d6d00 | #6d6d00 | #ff2424 | #ff2424 | #da0000 | #da0000 |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #ff4848 | #ff4848 | #b60000 | #b60000 |
#b6b66d | #b6b66d | #494900 | #494900 | #ff6d6d | #ff6d6d | #910000 | #910000 |
#c8c891 | #c8c891 | #363600 | #363600 | #ff9191 | #ff9191 | #6d0000 | #6d0000 |
#dadab6 | #dadab6 | #242400 | #242400 | #ffb6b6 | #ffb6b6 | #480000 | #480000 |
#ececda | #ececda | #121200 | #121200 | #ffdada | #ffdada | #240000 | #240000 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe olive auf Farbwert #ff0000 ändern, wenn man mit der Maus auf <option> zeigt. Wir bereiten zunächst eine Darstellung von <option> in Farbe olive vor.
In diesem Beispiel setzen wir bei <option> die Textfarbe auf Farbe olive. Die Hintergrundfarbe ändern wir nicht. Die Schriftart setzen wir auf verdana:
<style type="text/css"><!-- option { color:olive; font-family:verdana; } //--> </style>Nun fordern wir, dass sich bei Hover die Textfarbe auf #ff0000 ändert.
<style type="text/css"><!-- option:hover { color:#ff0000; } //--> </style>
Weiteres zum Thema option lesen Sie in Formulare in HTML. Die Beschreibung des Befehl option erfahren Sie in der HTML Referenz unter <option>.
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 |