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 #00ffff | Schriftfarbwert #ffff00 | |||||
Detail | : | Hintergrund #00ffff | Detail | : | Schrift #ffff00 | |
Farbwert | : | #00ffff | Farbwert | : | #ffff00 | |
Farbe | : | aqua | Farbe | : | yellow | |
HTML | : | #00ffff | HTML | : | #ffff00 | |
HTML (Wert) | : | #00ffff | HTML (Wert) | : | #ffff00 | |
CSS | : | #00ffff | CSS | : | #ffff00 | |
CSS (Wert) | : | #00ffff | CSS (Wert) | : | #ffff00 | |
CSS (kürzest) | : | #0ff | CSS (kürzest) | : | #ff0 | |
CSS (RGB) | : | rgb(0,255,255) | CSS (RGB) | : | rgb(255,255,0) | |
CSS (%RGB) | : | rgb(0%,100%,100%) | CSS (%RGB) | : | rgb(100%,100%,0%) |
Verlauf Hintergrundfarbwert #00ffff nach Schriftfarbwert #ffff00 | |||||||
#00ffff | #24ffda | #48ffb6 | #6dff91 | #91ff6d | #b6ff48 | #daff24 | #ffff00 |
#00ffff | #24ffda | #48ffb6 | #6dff91 | #91ff6d | #b6ff48 | #daff24 | #ffff00 |
Kombination von #00ffff und #ffff00 | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | #ffff00 eignet sich nicht als Schriftfarbe auf Hintergrund #00ffff. Zwar ist der Farbunterschied in Ordnung, die Helligkeiten sind sich jedoch zu ähnlich. Die Ähnlichkeit von #ffff00 und #00ffff beträgt 94.44%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 5.56%. |
Hintergrundfarbwert #00ffff | Schriftfarbwert #ffff00 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#00ffff | #00ffff | #00ffff | #00ffff | #ffff00 | #ffff00 | #ffff00 | #ffff00 |
#24ffff | #24ffff | #00dada | #00dada | #ffff24 | #ffff24 | #dada00 | #dada00 |
#48ffff | #48ffff | #00b6b6 | #00b6b6 | #ffff48 | #ffff48 | #b6b600 | #b6b600 |
#6dffff | #6dffff | #009191 | #009191 | #ffff6d | #ffff6d | #919100 | #919100 |
#91ffff | #91ffff | #006d6d | #006d6d | #ffff91 | #ffff91 | #6d6d00 | #6d6d00 |
#b6ffff | #b6ffff | #004848 | #004848 | #ffffb6 | #ffffb6 | #484800 | #484800 |
#daffff | #daffff | #002424 | #002424 | #ffffda | #ffffda | #242400 | #242400 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Ein Verweis wird mit Befehl <a> erzeugt. Diesen können Sie farblich gestalten und hervorheben.
In diesem Beispiel umranden wir <a> mit einem . Den Hintergrund von <a> färben wir entsprechend mit Farbwert #00ffff. Dies geht in HTML kaum. Wir verwenden deshalb CSS.
<style type="text/css"><!-- a { background-color:#0ff; border-color:#ff0; border-style:dotted; border-width:2pt; } //--> </style>
Mehr zum Thema finden Sie in Verweise und Protokolle in HTML. Weiteres zum HTML-Befehl a ist in der HTML Referenz unter <a> genau gezeigt.
Wir ändern bei diesem Beispiel die Textfarbe von <blockquote> auf Farbwert #ffff00 und die Hintergrundfarbe von <blockquote> auf Farbwert #00ffff. Die Schriftart ändern wir auf monospace und als Schriftgröße entscheiden wir uns für 93%.
<style type="text/css"><!-- blockquote { color:#ffff00; background-color:#0ff; font-size:93%; font-family:monospace; } //--> </style>
Mehr zum Thema blockquote können Sie in Blockorientierte Elemente in HTML finden. Zur Beschreibung des HTML-Befehl <blockquote>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #00ffff | |
black | #000000 | + | black | #000000 | black / #00ffff | |
blue | #0000ff | + | blue | #0000ff | blue / #00ffff | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #00ffff | |
gray | #808080 | + | gray | #808080 | gray / #00ffff | |
grey | #808080 | + | grey | #808080 | grey / #00ffff | |
green | #008000 | + | green | #008000 | green / #00ffff | |
lime | #00ff00 | + | lime | #00ff00 | lime / #00ffff | |
maroon | #800000 | + | maroon | #800000 | maroon / #00ffff | |
navy | #000080 | + | navy | #000080 | navy / #00ffff | |
olive | #808000 | + | olive | #808000 | olive / #00ffff | |
purple | #800080 | + | purple | #800080 | purple / #00ffff | |
red | #ff0000 | + | red | #ff0000 | red / #00ffff | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #00ffff | |
teal | #008080 | + | teal | #008080 | teal / #00ffff | |
white | #ffffff | + | white | #ffffff | white / #00ffff | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #00ffff |