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 | Schriftfarbe mintcream | |||||
Detail | : | Hintergrund lightyellow | Detail | : | Schrift mintcream | |
Farbe | : | lightyellow | Farbe | : | mintcream | |
Farbwert | : | #ffffe0 | Farbwert | : | #f5fffa | |
HTML | : | lightyellow | HTML | : | mintcream | |
HTML (Wert) | : | #ffffe0 | HTML (Wert) | : | #f5fffa | |
CSS | : | lightyellow | CSS | : | mintcream | |
CSS (Wert) | : | #ffffe0 | CSS (Wert) | : | #f5fffa | |
CSS (kürzest) | : | #ffffe0 | CSS (kürzest) | : | #f5fffa | |
CSS (RGB) | : | rgb(255,255,224) | CSS (RGB) | : | rgb(245,255,250) | |
CSS (%RGB) | : | rgb(100%,100%,87%) | CSS (%RGB) | : | rgb(96%,100%,98%) |
Verlauf Hintergrundfarbe lightyellow nach Schriftfarbe mintcream | |||||||
#ffffe0 | #fdffe3 | #fcffe7 | #faffeb | #f9ffee | #f7fff2 | #f6fff6 | #f5fffa |
#ffffe0 | #fdffe3 | #fcffe7 | #faffeb | #f9ffee | #f7fff2 | #f6fff6 | #f5fffa |
Kombination von lightyellow und mintcream | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. | mintcream eignet sich nicht als Schriftfarbe auf Hintergrund lightyellow, weil die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit der Farben mintcream und lightyellow beträgt 95.22%. Die Lesbarkeit dieser Farbkombination liegt damit bei 4.78%. |
Hintergrundfarbe lightyellow | Schriftfarbe mintcream | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffffe0 | #ffffe0 | #ffffe0 | #ffffe0 | #f5fffa | #f5fffa | #f5fffa | #f5fffa |
#ffffe4 | #ffffe4 | #dadac0 | #dadac0 | #f6fffa | #f6fffa | #d2dad6 | #d2dad6 |
#ffffe8 | #ffffe8 | #b6b6a0 | #b6b6a0 | #f7fffb | #f7fffb | #afb6b2 | #afb6b2 |
#ffffed | #ffffed | #919180 | #919180 | #f9fffc | #f9fffc | #8c918e | #8c918e |
#fffff1 | #fffff1 | #6d6d60 | #6d6d60 | #fafffc | #fafffc | #696d6b | #696d6b |
#fffff6 | #fffff6 | #484840 | #484840 | #fcfffd | #fcfffd | #464847 | #464847 |
#fffffa | #fffffa | #242420 | #242420 | #fdfffe | #fdfffe | #232423 | #232423 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Bei diesem Beispiel ändern wir die Textfarbe von <fieldset> auf Farbe mintcream und die Hintergrundfarbe von <fieldset> auf Farbe lightyellow. Die Schriftart ändern wir auf monospace. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- fieldset { color:mintcream; font-size:13px; background-color:lightyellow; font-family:monospace; } //--> </style>
Mehr zu fieldset können Sie in Formulare in HTML nachsehen. Einzelheiten vom Tag fieldset finden Sie in der HTML Referenz unter <fieldset>.