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 white | Schriftfarbe aqua | |||||
| Detail | : | Hintergrund white | Detail | : | Schrift aqua | |
| Farbe | : | white | Farbe | : | aqua | |
| Farbwert | : | #ffffff | Farbwert | : | #00ffff | |
| HTML | : | white | HTML | : | aqua | |
| HTML (Wert) | : | #ffffff | HTML (Wert) | : | #00ffff | |
| CSS | : | white | CSS | : | aqua | |
| CSS (Wert) | : | #ffffff | CSS (Wert) | : | #00ffff | |
| CSS (kürzest) | : | #fff | CSS (kürzest) | : | #0ff | |
| CSS (RGB) | : | rgb(255,255,255) | CSS (RGB) | : | rgb(0,255,255) | |
| CSS (%RGB) | : | rgb(100%,100%,100%) | CSS (%RGB) | : | rgb(0%,100%,100%) | |
Verlauf Hintergrundfarbe white nach Schriftfarbe aqua | |||||||
| #ffffff | #daffff | #b6ffff | #91ffff | #6dffff | #48ffff | #24ffff | #00ffff |
| #ffffff | #daffff | #b6ffff | #91ffff | #6dffff | #48ffff | #24ffff | #00ffff |
Kombination von white und aqua | |||||||
| 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. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Auf Hintergrund white ist aqua ungeeignet. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. Die Ähnlichkeit von aqua und white beträgt 94.03%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 5.97%. | ||||||
Hintergrundfarbe white | Schriftfarbe aqua | ||||||
| Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
| #ffffff | #ffffff | #ffffff | #ffffff | #00ffff | #00ffff | #00ffff | #00ffff |
| #ffffff | #ffffff | #dadada | #dadada | #24ffff | #24ffff | #00dada | #00dada |
| #ffffff | #ffffff | #b6b6b6 | #b6b6b6 | #48ffff | #48ffff | #00b6b6 | #00b6b6 |
| #ffffff | #ffffff | #919191 | #919191 | #6dffff | #6dffff | #009191 | #009191 |
| #ffffff | #ffffff | #6d6d6d | #6d6d6d | #91ffff | #91ffff | #006d6d | #006d6d |
| #ffffff | #ffffff | #484848 | #484848 | #b6ffff | #b6ffff | #004848 | #004848 |
| #ffffff | #ffffff | #242424 | #242424 | #daffff | #daffff | #002424 | #002424 |
| #ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <samp> mit einem . Die Hintergrundfarbe für <samp> setzen wir entsprechend auf Farbe white. Mit HTML geht dies kaum. Wir verwenden daher CSS zur Formatierung.
<style type="text/css"><!-- samp { border-style: inset; border-width: 2pt; background-color: white; border-color: aqua; } //--> </style>
Mehr zum Thema finden Sie in Text in HTML. Einzelheiten des HTML-Befehl <samp>.
| Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
|---|---|---|---|---|---|---|
| aqua | #00ffff | + | aqua | #00ffff | aqua / white | |
| black | #000000 | + | black | #000000 | black / white | |
| blue | #0000ff | + | blue | #0000ff | blue / white | |
| fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / white | |
| gray | #808080 | + | gray | #808080 | gray / white | |
| grey | #808080 | + | grey | #808080 | grey / white | |
| green | #008000 | + | green | #008000 | green / white | |
| lime | #00ff00 | + | lime | #00ff00 | lime / white | |
| maroon | #800000 | + | maroon | #800000 | maroon / white | |
| navy | #000080 | + | navy | #000080 | navy / white | |
| olive | #808000 | + | olive | #808000 | olive / white | |
| purple | #800080 | + | purple | #800080 | purple / white | |
| red | #ff0000 | + | red | #ff0000 | red / white | |
| silver | #c0c0c0 | + | silver | #c0c0c0 | silver / white | |
| teal | #008080 | + | teal | #008080 | teal / white | |
| white | #ffffff | + | white | #ffffff | white / white | |
| yellow | #ffff00 | + | yellow | #ffff00 | yellow / white |