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 mediumaquamarine | Schriftfarbe lightblue | |||||
Detail | : | Hintergrund mediumaquamarine | Detail | : | Schrift lightblue | |
Farbe | : | mediumaquamarine | Farbe | : | lightblue | |
Farbwert | : | #66cdaa | Farbwert | : | #add8e6 | |
HTML | : | mediumaquamarine | HTML | : | lightblue | |
HTML (Wert) | : | #66cdaa | HTML (Wert) | : | #add8e6 | |
CSS | : | mediumaquamarine | CSS | : | lightblue | |
CSS (Wert) | : | #66cdaa | CSS (Wert) | : | #add8e6 | |
CSS (kürzest) | : | #66cdaa | CSS (kürzest) | : | #add8e6 | |
CSS (RGB) | : | rgb(102,205,170) | CSS (RGB) | : | rgb(173,216,230) | |
CSS (%RGB) | : | rgb(40%,80%,66%) | CSS (%RGB) | : | rgb(67%,84%,90%) |
Verlauf Hintergrundfarbe mediumaquamarine nach Schriftfarbe lightblue | |||||||
#66cdaa | #70ceb2 | #7ad0bb | #84d1c3 | #8ed3cc | #98d4d4 | #a2d6dd | #add8e6 |
#66cdaa | #70ceb2 | #7ad0bb | #84d1c3 | #8ed3cc | #98d4d4 | #a2d6dd | #add8e6 |
Kombination von mediumaquamarine und lightblue | |||||||
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. | Die Ähnlichkeit der Farben lightblue und mediumaquamarine ergibt sich zu 93.98%. Die Lesbarkeit dieser Farbkombination liegt damit bei 6.02%. lightblue ist nicht als Schriftfarbe auf Hintergrund mediumaquamarine geeignet. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. |
Hintergrundfarbe mediumaquamarine | Schriftfarbe lightblue | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#66cdaa | #66cdaa | #66cdaa | #66cdaa | #add8e6 | #add8e6 | #add8e6 | #add8e6 |
#7bd4b6 | #7bd4b6 | #57af91 | #57af91 | #b8dde9 | #b8dde9 | #94b9c5 | #94b9c5 |
#91dbc2 | #91dbc2 | #489279 | #489279 | #c4e3ed | #c4e3ed | #7b9aa4 | #7b9aa4 |
#a7e2ce | #a7e2ce | #3a7561 | #3a7561 | #d0e8f0 | #d0e8f0 | #627b83 | #627b83 |
#bde9da | #bde9da | #2b5748 | #2b5748 | #dbeef4 | #dbeef4 | #4a5c62 | #4a5c62 |
#d3f0e6 | #d3f0e6 | #1d3a30 | #1d3a30 | #e7f3f7 | #e7f3f7 | #313d41 | #313d41 |
#e9f7f2 | #e9f7f2 | #0e1d18 | #0e1d18 | #f3f9fb | #f3f9fb | #181e20 | #181e20 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe mediumaquamarine auf Farbe lightblue ändern, wenn man mit der Maus auf <label> zeigt. Bereiten wir zunächst eine Darstellung von <label> in Farbe mediumaquamarine vor.
Als Beispiel legen wir bei <label> die Textfarbe auf Farbe mediumaquamarine fest und ändern die Größe der Schrift auf 13pt.
<style type="text/css"><!-- label { color: mediumaquamarine; font-size: 13pt; } //--> </style>Nun stellen wir ein, dass bei Berührung mit der Maus die Textfarbe auf lightblue gesetzt wird.
<style type="text/css"><!-- label:hover { color:lightblue; } //--> </style>
Mehr zu label lesen Sie in Formulare in HTML. Der Befehl label ist in der HTML Referenz bei <label> zusammengestellt.