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 yellow | Schriftfarbwert #808080 | |||||
Detail | : | Hintergrund yellow | Detail | : | Schrift #808080 | |
Farbe | : | yellow | Farbwert | : | #808080 | |
Farbwert | : | #ffff00 | Farbe | : | gray | |
HTML | : | yellow | HTML | : | #808080 | |
HTML (Wert) | : | #ffff00 | HTML (Wert) | : | #808080 | |
CSS | : | yellow | CSS | : | #808080 | |
CSS (Wert) | : | #ffff00 | CSS (Wert) | : | #808080 | |
CSS (kürzest) | : | #ff0 | CSS (kürzest) | : | #808080 | |
CSS (RGB) | : | rgb(255,255,0) | CSS (RGB) | : | rgb(128,128,128) | |
CSS (%RGB) | : | rgb(100%,100%,0%) | CSS (%RGB) | : | rgb(50%,50%,50%) |
Verlauf Hintergrundfarbe yellow nach Schriftfarbwert #808080 | |||||||
#ffff00 | #ecec12 | #dada24 | #c8c836 | #b6b649 | #a4a45b | #92926d | #808080 |
#ffff00 | #ecec12 | #dada24 | #c8c836 | #b6b649 | #a4a45b | #92926d | #808080 |
Kombination von yellow und #808080 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. 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. | #808080 ist nicht als Schriftfarbe auf Hintergrund yellow geeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind ausreichend. Die Ähnlichkeit von #808080 und yellow beträgt 82.49%. Die Lesbarkeit dieser Kombination bewerte ich mit 17.51%. |
Hintergrundfarbe yellow | Schriftfarbwert #808080 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffff00 | #ffff00 | #ffff00 | #ffff00 | #808080 | #808080 | #808080 | #808080 |
#ffff24 | #ffff24 | #dada00 | #dada00 | #929292 | #929292 | #6d6d6d | #6d6d6d |
#ffff48 | #ffff48 | #b6b600 | #b6b600 | #a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b |
#ffff6d | #ffff6d | #919100 | #919100 | #b6b6b6 | #b6b6b6 | #494949 | #494949 |
#ffff91 | #ffff91 | #6d6d00 | #6d6d00 | #c8c8c8 | #c8c8c8 | #363636 | #363636 |
#ffffb6 | #ffffb6 | #484800 | #484800 | #dadada | #dadada | #242424 | #242424 |
#ffffda | #ffffda | #242400 | #242400 | #ececec | #ececec | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Einen Verweis erzeugen Sie mit HTML-Befehl <a> und kann farblich gestaltet werden.
Für dieses Beispiel ändern wir die Textfarbe von <a> auf Farbwert #808080 und lassen die Hintergrundfarbe unverändert. Die Schriftart ändern wir auf courier new und ändern die Schriftgröße auf 9pt. Wir unterstreichen den Inhalt von <a> mit Hilfe eines gezahnten Rahmens mit 3 Punkte Dicke in Farbe yellow. Das ist in HTML nicht möglich. Wir nutzen daher CSS zur Formatierung.
<style type="text/css"><!-- a { border-bottom-style: ridge; border-bottom-width: 3pt; color: #808080; font-family: courier new; font-size: 9pt; border-bottom-color: yellow; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zu a erfahren Sie in Verweise und Protokolle in HTML. Einzelheiten des hier genutzten HTML-Befehl a sind in der HTML Referenz unter <a> ausführlich beschrieben.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / yellow | |
black | #000000 | + | black | #000000 | black / yellow | |
blue | #0000ff | + | blue | #0000ff | blue / yellow | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / yellow | |
gray | #808080 | + | gray | #808080 | gray / yellow | |
grey | #808080 | + | grey | #808080 | grey / yellow | |
green | #008000 | + | green | #008000 | green / yellow | |
lime | #00ff00 | + | lime | #00ff00 | lime / yellow | |
maroon | #800000 | + | maroon | #800000 | maroon / yellow | |
navy | #000080 | + | navy | #000080 | navy / yellow | |
olive | #808000 | + | olive | #808000 | olive / yellow | |
purple | #800080 | + | purple | #800080 | purple / yellow | |
red | #ff0000 | + | red | #ff0000 | red / yellow | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / yellow | |
teal | #008080 | + | teal | #008080 | teal / yellow | |
white | #ffffff | + | white | #ffffff | white / yellow | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / yellow |