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 #000080 | |||||
Detail | : | Hintergrund maroon | Detail | : | Schrift #000080 | |
Farbe | : | maroon | Farbwert | : | #000080 | |
Farbwert | : | #800000 | Farbe | : | navy | |
HTML | : | maroon | HTML | : | #000080 | |
HTML (Wert) | : | #800000 | HTML (Wert) | : | #000080 | |
CSS | : | maroon | CSS | : | #000080 | |
CSS (Wert) | : | #800000 | CSS (Wert) | : | #000080 | |
CSS (kürzest) | : | #800000 | CSS (kürzest) | : | #000080 | |
CSS (RGB) | : | rgb(128,0,0) | CSS (RGB) | : | rgb(0,0,128) | |
CSS (%RGB) | : | rgb(50%,0%,0%) | CSS (%RGB) | : | rgb(0%,0%,50%) |
Verlauf Hintergrundfarbe maroon nach Schriftfarbwert #000080 | |||||||
#800000 | #6d0012 | #5b0024 | #490036 | #360049 | #24005b | #12006d | #000080 |
#800000 | #6d0012 | #5b0024 | #490036 | #360049 | #24005b | #12006d | #000080 |
Kombination von maroon und #000080 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. 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. | #000080 eignet sich nicht als Schriftfarbe auf Hintergrund maroon. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von #000080 und maroon beträgt 93.04%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 6.96%. |
Hintergrundfarbe maroon | Schriftfarbwert #000080 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#800000 | #800000 | #800000 | #800000 | #000080 | #000080 | #000080 | #000080 |
#922424 | #922424 | #6d0000 | #6d0000 | #242492 | #242492 | #00006d | #00006d |
#a44848 | #a44848 | #5b0000 | #5b0000 | #4848a4 | #4848a4 | #00005b | #00005b |
#b66d6d | #b66d6d | #490000 | #490000 | #6d6db6 | #6d6db6 | #000049 | #000049 |
#c89191 | #c89191 | #360000 | #360000 | #9191c8 | #9191c8 | #000036 | #000036 |
#dab6b6 | #dab6b6 | #240000 | #240000 | #b6b6da | #b6b6da | #000024 | #000024 |
#ecdada | #ecdada | #120000 | #120000 | #dadaec | #dadaec | #000012 | #000012 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Hintergrundfarbe soll sich von Farbe maroon auf Farbwert #000080 ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst die Darstellung von <blockquote> in Farbe maroon vor.
Zum Beispiel setzen wir bei <blockquote> die Hintergrundfarbe auf Farbe maroon. Die Größe der Schrift setzen wir auf 13px:
<style type="text/css"><!-- blockquote { background-color: maroon; font-size: 13px; } //--> </style>Nun stellen wir ein, dass bei Mausberührung die Hintergrundfarbe auf #000080 gesetzt wird.
<style type="text/css"><!-- blockquote: hover { background-color: #000080; } //--> </style>
Mehr zum Thema können Sie in Blockorientierte Elemente in HTML erfahren. Mehr zum Befehl <blockquote>.
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 |