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 #008080 | Schriftfarbe gray | |||||
Detail | : | Hintergrund #008080 | Detail | : | Schrift gray | |
Farbwert | : | #008080 | Farbe | : | gray | |
Farbe | : | teal | Farbwert | : | #808080 | |
HTML | : | #008080 | HTML | : | gray | |
HTML (Wert) | : | #008080 | HTML (Wert) | : | #808080 | |
CSS | : | #008080 | CSS | : | gray | |
CSS (Wert) | : | #008080 | CSS (Wert) | : | #808080 | |
CSS (kürzest) | : | #008080 | CSS (kürzest) | : | #808080 | |
CSS (RGB) | : | rgb(0,128,128) | CSS (RGB) | : | rgb(128,128,128) | |
CSS (%RGB) | : | rgb(0%,50%,50%) | CSS (%RGB) | : | rgb(50%,50%,50%) |
Verlauf Hintergrundfarbwert #008080 nach Schriftfarbe gray | |||||||
#008080 | #128080 | #248080 | #368080 | #498080 | #5b8080 | #6d8080 | #808080 |
#008080 | #128080 | #248080 | #368080 | #498080 | #5b8080 | #6d8080 | #808080 |
Kombination von #008080 und gray | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | gray ist nicht als Schriftfarbe auf Hintergrund #008080 geeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit der Farben gray und #008080 beträgt 94.24%. Die Lesbarkeit dieser Farbkombination liegt damit bei 5.76%. |
Hintergrundfarbwert #008080 | Schriftfarbe gray | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#008080 | #008080 | #008080 | #008080 | #808080 | #808080 | #808080 | #808080 |
#249292 | #249292 | #006d6d | #006d6d | #929292 | #929292 | #6d6d6d | #6d6d6d |
#48a4a4 | #48a4a4 | #005b5b | #005b5b | #a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b |
#6db6b6 | #6db6b6 | #004949 | #004949 | #b6b6b6 | #b6b6b6 | #494949 | #494949 |
#91c8c8 | #91c8c8 | #003636 | #003636 | #c8c8c8 | #c8c8c8 | #363636 | #363636 |
#b6dada | #b6dada | #002424 | #002424 | #dadada | #dadada | #242424 | #242424 |
#daecec | #daecec | #001212 | #001212 | #ececec | #ececec | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Mit HTML-Tag <h4> wird eine Überschrift der 4. Stufe gesetzt und kann farblich gestaltet und hervorgehoben werden.
Hier ändern wir die Textfarbe von <h4> auf Farbe gray. Die Schriftart ändern wir auf monospace. Die Schriftgröße ändern wir auf 9px. Wir unterstreichen den Inhalt von <h4> mit Hilfe eines einfallenden Rahmens mit 4 Pixel Dicke in Farbwert #008080. Mit HTML ist dies kaum möglich. Daher nutzen wir CSS zur Formatierung.
<style type="text/css"><!-- h4 { border-bottom-width: 4px; border-bottom-color: #008080; font-size: 9px; font-family: monospace; color: gray; border-bottom-style: inset; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema h4 erfahren Sie in Grundlegende Gestaltungselemente in HTML. Die Beschreibung vom hier verwendeten Tag h4 erfahren Sie in der HTML Referenz unter <h4>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #008080 | |
black | #000000 | + | black | #000000 | black / #008080 | |
blue | #0000ff | + | blue | #0000ff | blue / #008080 | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #008080 | |
gray | #808080 | + | gray | #808080 | gray / #008080 | |
grey | #808080 | + | grey | #808080 | grey / #008080 | |
green | #008000 | + | green | #008000 | green / #008080 | |
lime | #00ff00 | + | lime | #00ff00 | lime / #008080 | |
maroon | #800000 | + | maroon | #800000 | maroon / #008080 | |
navy | #000080 | + | navy | #000080 | navy / #008080 | |
olive | #808000 | + | olive | #808000 | olive / #008080 | |
purple | #800080 | + | purple | #800080 | purple / #008080 | |
red | #ff0000 | + | red | #ff0000 | red / #008080 | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #008080 | |
teal | #008080 | + | teal | #008080 | teal / #008080 | |
white | #ffffff | + | white | #ffffff | white / #008080 | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #008080 |