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 fuchsia | Schriftfarbe olive | |||||
Detail | : | Hintergrund fuchsia | Detail | : | Schrift olive | |
Farbe | : | fuchsia | Farbe | : | olive | |
Farbwert | : | #ff00ff | Farbwert | : | #808000 | |
HTML | : | fuchsia | HTML | : | olive | |
HTML (Wert) | : | #ff00ff | HTML (Wert) | : | #808000 | |
CSS | : | fuchsia | CSS | : | olive | |
CSS (Wert) | : | #ff00ff | CSS (Wert) | : | #808000 | |
CSS (kürzest) | : | #f0f | CSS (kürzest) | : | #808000 | |
CSS (RGB) | : | rgb(255,0,255) | CSS (RGB) | : | rgb(128,128,0) | |
CSS (%RGB) | : | rgb(100%,0%,100%) | CSS (%RGB) | : | rgb(50%,50%,0%) |
Verlauf Hintergrundfarbe fuchsia nach Schriftfarbe olive | |||||||
#ff00ff | #ec12da | #da24b6 | #c83691 | #b6496d | #a45b48 | #926d24 | #808000 |
#ff00ff | #ec12da | #da24b6 | #c83691 | #b6496d | #a45b48 | #926d24 | #808000 |
Kombination von fuchsia und olive | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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. Cras id velit ante. | Die Ähnlichkeit der Farben olive und fuchsia beträgt 93.63%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 6.37%. olive ist nicht als Schriftfarbe auf Hintergrund fuchsia geeignet. Zwar ist der Farbunterschied ausreichend, der Helligkeitsunterschied ist jedoch zu gering. |
Hintergrundfarbe fuchsia | Schriftfarbe olive | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ff00ff | #ff00ff | #ff00ff | #ff00ff | #808000 | #808000 | #808000 | #808000 |
#ff24ff | #ff24ff | #da00da | #da00da | #929224 | #929224 | #6d6d00 | #6d6d00 |
#ff48ff | #ff48ff | #b600b6 | #b600b6 | #a4a448 | #a4a448 | #5b5b00 | #5b5b00 |
#ff6dff | #ff6dff | #910091 | #910091 | #b6b66d | #b6b66d | #494900 | #494900 |
#ff91ff | #ff91ff | #6d006d | #6d006d | #c8c891 | #c8c891 | #363600 | #363600 |
#ffb6ff | #ffb6ff | #480048 | #480048 | #dadab6 | #dadab6 | #242400 | #242400 |
#ffdaff | #ffdaff | #240024 | #240024 | #ececda | #ececda | #121200 | #121200 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <code> mit einem doppelten, 2 Punkte dicken Rahmen in Farbe olive . Den Hintergrund von <code> setzen wir entsprechend auf Farbe fuchsia. Das geht in HTML kaum. Wir verwenden deshalb CSS.
<style type="text/css"><!-- code { border:2pt double olive; background-color:fuchsia; } //--> </style>
Mehr zum Thema code erfahren Sie in Text in HTML. Beschreibung vom HTML-Befehl <code>.
Die Hintergrundfarbe soll sich von Farbe fuchsia auf Farbe olive ändern, wenn man mit der Maus auf <q> zeigt. Wir bereiten zunächst eine Darstellung von <q> in Farbe fuchsia vor.
Als Beispiel legen wir die Hintergrundfarbe von <q> auf Farbe fuchsia fest.
<style type="text/css"><!-- q { background-color:fuchsia; } //--> </style>Nun stellen wir ein, dass bei Mausberührung die Hintergrundfarbe auf olive geändert wird.
<style type="text/css"><!-- q: hover { background-color: olive; } //--> </style>
Die Beschreibung vom hier verwendeten HTML-Befehl q erfahren Sie in der HTML Referenz unter <q>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / fuchsia | |
black | #000000 | + | black | #000000 | black / fuchsia | |
blue | #0000ff | + | blue | #0000ff | blue / fuchsia | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / fuchsia | |
gray | #808080 | + | gray | #808080 | gray / fuchsia | |
grey | #808080 | + | grey | #808080 | grey / fuchsia | |
green | #008000 | + | green | #008000 | green / fuchsia | |
lime | #00ff00 | + | lime | #00ff00 | lime / fuchsia | |
maroon | #800000 | + | maroon | #800000 | maroon / fuchsia | |
navy | #000080 | + | navy | #000080 | navy / fuchsia | |
olive | #808000 | + | olive | #808000 | olive / fuchsia | |
purple | #800080 | + | purple | #800080 | purple / fuchsia | |
red | #ff0000 | + | red | #ff0000 | red / fuchsia | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / fuchsia | |
teal | #008080 | + | teal | #008080 | teal / fuchsia | |
white | #ffffff | + | white | #ffffff | white / fuchsia | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / fuchsia |