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.
Hintergrundfarbwert #808080 | Schriftfarbe maroon | |||||
Detail | : | Hintergrund #808080 | Detail | : | Schrift maroon | |
Farbwert | : | #808080 | Farbe | : | maroon | |
Farbe | : | gray | Farbwert | : | #800000 | |
HTML | : | #808080 | HTML | : | maroon | |
HTML (Wert) | : | #808080 | HTML (Wert) | : | #800000 | |
CSS | : | #808080 | CSS | : | maroon | |
CSS (Wert) | : | #808080 | CSS (Wert) | : | #800000 | |
CSS (kürzest) | : | #808080 | CSS (kürzest) | : | #800000 | |
CSS (RGB) | : | rgb(128,128,128) | CSS (RGB) | : | rgb(128,0,0) | |
CSS (%RGB) | : | rgb(50%,50%,50%) | CSS (%RGB) | : | rgb(50%,0%,0%) |
Verlauf Hintergrundfarbwert #808080 nach Schriftfarbe maroon | |||||||
#808080 | #806d6d | #805b5b | #804949 | #803636 | #802424 | #801212 | #800000 |
#808080 | #806d6d | #805b5b | #804949 | #803636 | #802424 | #801212 | #800000 |
Kombination von #808080 und maroon | |||||||
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 id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | maroon ist nicht als Schriftfarbe auf Hintergrund #808080 geeignet, weil die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit von maroon und #808080 ergibt sich zu 86.80%. Die Lesbarkeit dieser Farbkombination liegt damit bei 13.20%. |
Hintergrundfarbwert #808080 | Schriftfarbe maroon | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808080 | #808080 | #808080 | #808080 | #800000 | #800000 | #800000 | #800000 |
#929292 | #929292 | #6d6d6d | #6d6d6d | #922424 | #922424 | #6d0000 | #6d0000 |
#a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b | #a44848 | #a44848 | #5b0000 | #5b0000 |
#b6b6b6 | #b6b6b6 | #494949 | #494949 | #b66d6d | #b66d6d | #490000 | #490000 |
#c8c8c8 | #c8c8c8 | #363636 | #363636 | #c89191 | #c89191 | #360000 | #360000 |
#dadada | #dadada | #242424 | #242424 | #dab6b6 | #dab6b6 | #240000 | #240000 |
#ececec | #ececec | #121212 | #121212 | #ecdada | #ecdada | #120000 | #120000 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <cite> auf Farbe maroon und die Hintergrundfarbe von <cite> auf Farbwert #808080. Die Schriftart ändern wir auf arial. Als Schriftgröße setzen wir 129%.
<style type="text/css"><!-- cite { color: maroon; font-size: 129%; font-family: arial; background-color: #808080; } //--> </style>
Beschreibung des hier verwendeten HTML-Befehl <cite>.
Für dieses Beispiel ändern wir die Textfarbe von <legend> auf Farbe maroon und lassen die Hintergrundfarbe unverändert. Die Schriftart ändern wir auf monospace und setzen die Schriftgröße auf 110%. Wir unterstreichen den Inhalt von <legend> mit Hilfe eines herausstehenden Rahmens mit 2 Pixel Dicke in Farbwert #808080. Mit HTML ist dies nicht möglich. Wir verwenden deshalb CSS zur Formatierung.
<style type="text/css"><!-- legend { border-bottom-color:#808080; font-family:monospace; border-bottom-style:outset; color:maroon; font-size:110%; border-bottom-width:2px; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zu legend können Sie in Formulare in HTML nachsehen. Beschreibung des HTML-Befehl <legend>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #808080 | |
black | #000000 | + | black | #000000 | black / #808080 | |
blue | #0000ff | + | blue | #0000ff | blue / #808080 | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #808080 | |
gray | #808080 | + | gray | #808080 | gray / #808080 | |
grey | #808080 | + | grey | #808080 | grey / #808080 | |
green | #008000 | + | green | #008000 | green / #808080 | |
lime | #00ff00 | + | lime | #00ff00 | lime / #808080 | |
maroon | #800000 | + | maroon | #800000 | maroon / #808080 | |
navy | #000080 | + | navy | #000080 | navy / #808080 | |
olive | #808000 | + | olive | #808000 | olive / #808080 | |
purple | #800080 | + | purple | #800080 | purple / #808080 | |
red | #ff0000 | + | red | #ff0000 | red / #808080 | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #808080 | |
teal | #008080 | + | teal | #008080 | teal / #808080 | |
white | #ffffff | + | white | #ffffff | white / #808080 | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #808080 |