von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
Netscape führte seinerzeit die websicheren Farben ein. Neben diesen Farbwerten, die einem bestimmten Schema folgen, definierte man noch 120 Werte und ordnete ihnen Namen zu.
Hintergrundfarbe lightyellow | Schriftfarbwert #fffacd | |||||
Detail | : | Hintergrund lightyellow | Detail | : | Schrift #fffacd | |
Farbe | : | lightyellow | Farbwert | : | #fffacd | |
Farbwert | : | #ffffe0 | Farbe | : | lemonchiffon | |
HTML | : | lightyellow | HTML | : | #fffacd | |
HTML (Wert) | : | #ffffe0 | HTML (Wert) | : | #fffacd | |
CSS | : | lightyellow | CSS | : | #fffacd | |
CSS (Wert) | : | #ffffe0 | CSS (Wert) | : | #fffacd | |
CSS (kürzest) | : | #ffffe0 | CSS (kürzest) | : | #fffacd | |
CSS (RGB) | : | rgb(255,255,224) | CSS (RGB) | : | rgb(255,250,205) | |
CSS (%RGB) | : | rgb(100%,100%,87%) | CSS (%RGB) | : | rgb(100%,98%,80%) |
Verlauf Hintergrundfarbe lightyellow nach Schriftfarbwert #fffacd | |||||||
#ffffe0 | #fffedd | #fffdda | #fffcd7 | #fffcd5 | #fffbd2 | #fffacf | #fffacd |
#ffffe0 | #fffedd | #fffdda | #fffcd7 | #fffcd5 | #fffbd2 | #fffacf | #fffacd |
Kombination von lightyellow und #fffacd | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Auf Hintergrund lightyellow ist #fffacd ungeeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von #fffacd und lightyellow beträgt 95.04%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 4.96%. |
Hintergrundfarbe lightyellow | Schriftfarbwert #fffacd | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffffe0 | #ffffe0 | #ffffe0 | #ffffe0 | #fffacd | #fffacd | #fffacd | #fffacd |
#ffffe4 | #ffffe4 | #dadac0 | #dadac0 | #fffad4 | #fffad4 | #dad6af | #dad6af |
#ffffe8 | #ffffe8 | #b6b6a0 | #b6b6a0 | #fffbdb | #fffbdb | #b6b292 | #b6b292 |
#ffffed | #ffffed | #919180 | #919180 | #fffce2 | #fffce2 | #918e75 | #918e75 |
#fffff1 | #fffff1 | #6d6d60 | #6d6d60 | #fffce9 | #fffce9 | #6d6b57 | #6d6b57 |
#fffff6 | #fffff6 | #484840 | #484840 | #fffdf0 | #fffdf0 | #48473a | #48473a |
#fffffa | #fffffa | #242420 | #242420 | #fffef7 | #fffef7 | #24231d | #24231d |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern bei diesem Beispiel die Textfarbe von <abbr> auf Farbwert #fffacd und die Hintergrundfarbe von <abbr> auf Farbe lightyellow. Die Schriftart setzen wir auf arial und als Schriftgröße entscheiden wir uns für 13px.
<style type="text/css"><!-- abbr { font-size: 13px; color: #fffacd; background-color: lightyellow; font-family: arial; } //--> </style>
Weiteres zum hier verwendeten Befehl abbr lesen Sie in der HTML Referenz unter <abbr>.