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 plum | Schriftfarbe aquamarine | |||||
Detail | : | Hintergrund plum | Detail | : | Schrift aquamarine | |
Farbe | : | plum | Farbe | : | aquamarine | |
Farbwert | : | #dda0dd | Farbwert | : | #7fffd4 | |
HTML | : | plum | HTML | : | aquamarine | |
HTML (Wert) | : | #dda0dd | HTML (Wert) | : | #7fffd4 | |
CSS | : | plum | CSS | : | aquamarine | |
CSS (Wert) | : | #dda0dd | CSS (Wert) | : | #7fffd4 | |
CSS (kürzest) | : | #dda0dd | CSS (kürzest) | : | #7fffd4 | |
CSS (RGB) | : | rgb(221,160,221) | CSS (RGB) | : | rgb(127,255,212) | |
CSS (%RGB) | : | rgb(86%,62%,86%) | CSS (%RGB) | : | rgb(49%,100%,83%) |
Verlauf Hintergrundfarbe plum nach Schriftfarbe aquamarine | |||||||
#dda0dd | #cfaddb | #c2bbda | #b4c8d9 | #a7d6d7 | #99e3d6 | #8cf1d5 | #7fffd4 |
#dda0dd | #cfaddb | #c2bbda | #b4c8d9 | #a7d6d7 | #99e3d6 | #8cf1d5 | #7fffd4 |
Kombination von plum und aquamarine | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | aquamarine ist nicht als Schriftfarbe auf Hintergrund plum geeignet. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit der Farben aquamarine und plum beträgt 91.95%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 8.05%. |
Hintergrundfarbe plum | Schriftfarbe aquamarine | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#dda0dd | #dda0dd | #dda0dd | #dda0dd | #7fffd4 | #7fffd4 | #7fffd4 | #7fffd4 |
#e1ade1 | #e1ade1 | #bd89bd | #bd89bd | #91ffda | #91ffda | #6cdab5 | #6cdab5 |
#e6bbe6 | #e6bbe6 | #9d729d | #9d729d | #a3ffe0 | #a3ffe0 | #5ab697 | #5ab697 |
#ebc8eb | #ebc8eb | #7e5b7e | #7e5b7e | #b5ffe6 | #b5ffe6 | #489179 | #489179 |
#f0d6f0 | #f0d6f0 | #5e445e | #5e445e | #c8ffec | #c8ffec | #366d5a | #366d5a |
#f5e3f5 | #f5e3f5 | #3f2d3f | #3f2d3f | #dafff2 | #dafff2 | #24483c | #24483c |
#faf1fa | #faf1fa | #1f161f | #1f161f | #ecfff8 | #ecfff8 | #12241e | #12241e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel umranden wir <dd> mit einem . Den Hintergrund von <dd> färben wir entsprechend mit Farbe plum. Dies geht mit HTML kaum. Deshalb formatieren wir mit CSS.
<style type="text/css"><!-- dd { border-style: ridge; border-color: aquamarine; background-color: plum; border-width: 1px; } //--> </style>
Mehr zum Thema dd lesen Sie in Listen und Glossare in HTML. Einzelheiten vom HTML-Tag dd erfahren Sie in der HTML Referenz unter <dd>.