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 tomato | Schriftfarbwert #dda0dd | |||||
Detail | : | Hintergrund tomato | Detail | : | Schrift #dda0dd | |
Farbe | : | tomato | Farbwert | : | #dda0dd | |
Farbwert | : | #ff6347 | Farbe | : | plum | |
HTML | : | tomato | HTML | : | #dda0dd | |
HTML (Wert) | : | #ff6347 | HTML (Wert) | : | #dda0dd | |
CSS | : | tomato | CSS | : | #dda0dd | |
CSS (Wert) | : | #ff6347 | CSS (Wert) | : | #dda0dd | |
CSS (kürzest) | : | #ff6347 | CSS (kürzest) | : | #dda0dd | |
CSS (RGB) | : | rgb(255,99,71) | CSS (RGB) | : | rgb(221,160,221) | |
CSS (%RGB) | : | rgb(100%,38%,27%) | CSS (%RGB) | : | rgb(86%,62%,86%) |
Verlauf Hintergrundfarbe tomato nach Schriftfarbwert #dda0dd | |||||||
#ff6347 | #fa6b5c | #f57471 | #f07d87 | #eb859c | #e68eb2 | #e197c7 | #dda0dd |
#ff6347 | #fa6b5c | #f57471 | #f07d87 | #eb859c | #e68eb2 | #e197c7 | #dda0dd |
Kombination von tomato und #dda0dd | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. | #dda0dd ist nicht als Schriftfarbe auf Hintergrund tomato geeignet. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit der Farben #dda0dd und tomato beträgt 93.22%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 6.78%. |
Hintergrundfarbe tomato | Schriftfarbwert #dda0dd | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ff6347 | #ff6347 | #ff6347 | #ff6347 | #dda0dd | #dda0dd | #dda0dd | #dda0dd |
#ff7961 | #ff7961 | #da543c | #da543c | #e1ade1 | #e1ade1 | #bd89bd | #bd89bd |
#ff8f7b | #ff8f7b | #b64632 | #b64632 | #e6bbe6 | #e6bbe6 | #9d729d | #9d729d |
#ffa595 | #ffa595 | #913828 | #913828 | #ebc8eb | #ebc8eb | #7e5b7e | #7e5b7e |
#ffbcb0 | #ffbcb0 | #6d2a1e | #6d2a1e | #f0d6f0 | #f0d6f0 | #5e445e | #5e445e |
#ffd2ca | #ffd2ca | #481c14 | #481c14 | #f5e3f5 | #f5e3f5 | #3f2d3f | #3f2d3f |
#ffe8e4 | #ffe8e4 | #240e0a | #240e0a | #faf1fa | #faf1fa | #1f161f | #1f161f |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Hintergrundfarbe soll sich von Farbe tomato auf Farbwert #dda0dd ändern, wenn man mit der Maus auf <address> zeigt. Bereiten wir zunächst die Formatierung von <address> in Farbe tomato vor.
Für dieses Beispiel legen wir bei <address> die Hintergrundfarbe auf Farbe tomato fest:
<style type="text/css"><!-- address { background-color:tomato; } //--> </style>Jetzt fordern wir, dass bei Hover die Hintergrundfarbe auf #dda0dd geändert wird.
<style type="text/css"><!-- address: hover { background-color: #dda0dd; } //--> </style>
Weiteres zu address lesen Sie in Blockorientierte Elemente in HTML. Weiteres zum HTML-Tag address lesen Sie in der HTML Referenz unter <address>.