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 aqua | Schriftfarbe navy | |||||
| Detail | : | Hintergrund aqua | Detail | : | Schrift navy | |
| Farbe | : | aqua | Farbe | : | navy | |
| Farbwert | : | #00ffff | Farbwert | : | #000080 | |
| HTML | : | aqua | HTML | : | navy | |
| HTML (Wert) | : | #00ffff | HTML (Wert) | : | #000080 | |
| CSS | : | aqua | CSS | : | navy | |
| CSS (Wert) | : | #00ffff | CSS (Wert) | : | #000080 | |
| CSS (kürzest) | : | #0ff | CSS (kürzest) | : | #000080 | |
| CSS (RGB) | : | rgb(0,255,255) | CSS (RGB) | : | rgb(0,0,128) | |
| CSS (%RGB) | : | rgb(0%,100%,100%) | CSS (%RGB) | : | rgb(0%,0%,50%) | |
Verlauf Hintergrundfarbe aqua nach Schriftfarbe navy | |||||||
| #00ffff | #00daec | #00b6da | #0091c8 | #006db6 | #0048a4 | #002492 | #000080 |
| #00ffff | #00daec | #00b6da | #0091c8 | #006db6 | #0048a4 | #002492 | #000080 |
Kombination von aqua und navy | |||||||
| 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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Die Ähnlichkeit von navy und aqua ergibt sich zu 39.20%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 60.80%. navy ist nicht als Schriftfarbe auf Hintergrund aqua geeignet. Zwar ist der Helligkeitsunterschied gross genug, doch die Farben selbst sind zu ähnlich. | ||||||
Hintergrundfarbe aqua | Schriftfarbe navy | ||||||
| Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
| #00ffff | #00ffff | #00ffff | #00ffff | #000080 | #000080 | #000080 | #000080 |
| #24ffff | #24ffff | #00dada | #00dada | #242492 | #242492 | #00006d | #00006d |
| #48ffff | #48ffff | #00b6b6 | #00b6b6 | #4848a4 | #4848a4 | #00005b | #00005b |
| #6dffff | #6dffff | #009191 | #009191 | #6d6db6 | #6d6db6 | #000049 | #000049 |
| #91ffff | #91ffff | #006d6d | #006d6d | #9191c8 | #9191c8 | #000036 | #000036 |
| #b6ffff | #b6ffff | #004848 | #004848 | #b6b6da | #b6b6da | #000024 | #000024 |
| #daffff | #daffff | #002424 | #002424 | #dadaec | #dadaec | #000012 | #000012 |
| #ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel umranden wir <address> mit einem . Den Hintergrund von <address> setzen wir entsprechend auf Farbe aqua. Das geht in HTML kaum. Daher verwenden wir CSS.
<style type="text/css"><!-- address { border:1pt double navy; background-color:aqua; } //--> </style>
Weiteres zum Thema können Sie in Blockorientierte Elemente in HTML lesen. Zur Beschreibung des Tag <address>.
| Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
|---|---|---|---|---|---|---|
| aqua | #00ffff | + | aqua | #00ffff | aqua / aqua | |
| black | #000000 | + | black | #000000 | black / aqua | |
| blue | #0000ff | + | blue | #0000ff | blue / aqua | |
| fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / aqua | |
| gray | #808080 | + | gray | #808080 | gray / aqua | |
| grey | #808080 | + | grey | #808080 | grey / aqua | |
| green | #008000 | + | green | #008000 | green / aqua | |
| lime | #00ff00 | + | lime | #00ff00 | lime / aqua | |
| maroon | #800000 | + | maroon | #800000 | maroon / aqua | |
| navy | #000080 | + | navy | #000080 | navy / aqua | |
| olive | #808000 | + | olive | #808000 | olive / aqua | |
| purple | #800080 | + | purple | #800080 | purple / aqua | |
| red | #ff0000 | + | red | #ff0000 | red / aqua | |
| silver | #c0c0c0 | + | silver | #c0c0c0 | silver / aqua | |
| teal | #008080 | + | teal | #008080 | teal / aqua | |
| white | #ffffff | + | white | #ffffff | white / aqua | |
| yellow | #ffff00 | + | yellow | #ffff00 | yellow / aqua |