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 #800080 | |||||
Detail | : | Hintergrund yellow | Detail | : | Schrift #800080 | |
Farbe | : | yellow | Farbwert | : | #800080 | |
Farbwert | : | #ffff00 | Farbe | : | purple | |
HTML | : | yellow | HTML | : | #800080 | |
HTML (Wert) | : | #ffff00 | HTML (Wert) | : | #800080 | |
CSS | : | yellow | CSS | : | #800080 | |
CSS (Wert) | : | #ffff00 | CSS (Wert) | : | #800080 | |
CSS (kürzest) | : | #ff0 | CSS (kürzest) | : | #800080 | |
CSS (RGB) | : | rgb(255,255,0) | CSS (RGB) | : | rgb(128,0,128) | |
CSS (%RGB) | : | rgb(100%,100%,0%) | CSS (%RGB) | : | rgb(50%,0%,50%) |
Verlauf Hintergrundfarbe yellow nach Schriftfarbwert #800080 | |||||||
#ffff00 | #ecda12 | #dab624 | #c89136 | #b66d49 | #a4485b | #92246d | #800080 |
#ffff00 | #ecda12 | #dab624 | #c89136 | #b66d49 | #a4485b | #92246d | #800080 |
Kombination von yellow und #800080 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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 vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | Die Ähnlichkeit von #800080 und yellow ergibt sich zu 58.23%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 41.77%. #800080 eignet sich als Schriftfarbe auf Hintergrund yellow. Der Unterschied in den Helligkeiten ist gut, der Farbenunterschied auch. |
Hintergrundfarbe yellow | Schriftfarbwert #800080 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffff00 | #ffff00 | #ffff00 | #ffff00 | #800080 | #800080 | #800080 | #800080 |
#ffff24 | #ffff24 | #dada00 | #dada00 | #922492 | #922492 | #6d006d | #6d006d |
#ffff48 | #ffff48 | #b6b600 | #b6b600 | #a448a4 | #a448a4 | #5b005b | #5b005b |
#ffff6d | #ffff6d | #919100 | #919100 | #b66db6 | #b66db6 | #490049 | #490049 |
#ffff91 | #ffff91 | #6d6d00 | #6d6d00 | #c891c8 | #c891c8 | #360036 | #360036 |
#ffffb6 | #ffffb6 | #484800 | #484800 | #dab6da | #dab6da | #240024 | #240024 |
#ffffda | #ffffda | #242400 | #242400 | #ecdaec | #ecdaec | #120012 | #120012 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Bei diesem Beispiel umranden wir <textarea> mit einem einfallenden, 4 Pixel dicken Rahmen in Farbwert #800080 . Den Hintergrund von <textarea> setzen wir entsprechend auf Farbe yellow. Dies geht mit HTML kaum. Daher verwenden wir CSS zur Formatierung.
<style type="text/css"><!-- textarea { border:4px inset #800080; background-color:yellow; } //--> </style>
Mehr zum Thema können Sie in Formulare in HTML erfahren. Beschreibung vom Tag <textarea>.
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 |