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 teal | |||||
| Detail | : | Hintergrund aqua | Detail | : | Schrift teal | |
| Farbe | : | aqua | Farbe | : | teal | |
| Farbwert | : | #00ffff | Farbwert | : | #008080 | |
| HTML | : | aqua | HTML | : | teal | |
| HTML (Wert) | : | #00ffff | HTML (Wert) | : | #008080 | |
| CSS | : | aqua | CSS | : | teal | |
| CSS (Wert) | : | #00ffff | CSS (Wert) | : | #008080 | |
| CSS (kürzest) | : | #0ff | CSS (kürzest) | : | #008080 | |
| CSS (RGB) | : | rgb(0,255,255) | CSS (RGB) | : | rgb(0,128,128) | |
| CSS (%RGB) | : | rgb(0%,100%,100%) | CSS (%RGB) | : | rgb(0%,50%,50%) | |
Verlauf Hintergrundfarbe aqua nach Schriftfarbe teal | |||||||
| #00ffff | #00ecec | #00dada | #00c8c8 | #00b6b6 | #00a4a4 | #009292 | #008080 |
| #00ffff | #00ecec | #00dada | #00c8c8 | #00b6b6 | #00a4a4 | #009292 | #008080 |
Kombination von aqua und teal | |||||||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. Cras vestibulum tristique erat, ac interdum justo cursus in. | teal eignet sich nicht als Schriftfarbe auf Hintergrund aqua, weil die Unterschiede in der Helligkeit und Farbe unzureichend sind. Die Ähnlichkeit der Farben teal und aqua beträgt 81.87%. Die Lesbarkeit dieser Farbkombination liegt damit bei 18.13%. | ||||||
Hintergrundfarbe aqua | Schriftfarbe teal | ||||||
| Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
| #00ffff | #00ffff | #00ffff | #00ffff | #008080 | #008080 | #008080 | #008080 |
| #24ffff | #24ffff | #00dada | #00dada | #249292 | #249292 | #006d6d | #006d6d |
| #48ffff | #48ffff | #00b6b6 | #00b6b6 | #48a4a4 | #48a4a4 | #005b5b | #005b5b |
| #6dffff | #6dffff | #009191 | #009191 | #6db6b6 | #6db6b6 | #004949 | #004949 |
| #91ffff | #91ffff | #006d6d | #006d6d | #91c8c8 | #91c8c8 | #003636 | #003636 |
| #b6ffff | #b6ffff | #004848 | #004848 | #b6dada | #b6dada | #002424 | #002424 |
| #daffff | #daffff | #002424 | #002424 | #daecec | #daecec | #001212 | #001212 |
| #ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel umranden wir <table> mit einem . Den Hintergrund von <table> färben wir mit Farbe aqua. In HTML ist das kaum möglich. Daher formatieren wir mit CSS.
<style type="text/css"><!-- table { border:5pt inset teal; background-color:aqua; } //--> </style>
Mehr zum Thema können Sie in Tabellen in HTML nachsehen. Weiteres zum hier genutzten HTML-Befehl table lesen Sie in der HTML Referenz unter <table>.
| 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 |