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 skyblue | Schriftfarbe cornflowerblue | |||||
Detail | : | Hintergrund skyblue | Detail | : | Schrift cornflowerblue | |
Farbe | : | skyblue | Farbe | : | cornflowerblue | |
Farbwert | : | #87ceeb | Farbwert | : | #6495ed | |
HTML | : | skyblue | HTML | : | cornflowerblue | |
HTML (Wert) | : | #87ceeb | HTML (Wert) | : | #6495ed | |
CSS | : | skyblue | CSS | : | cornflowerblue | |
CSS (Wert) | : | #87ceeb | CSS (Wert) | : | #6495ed | |
CSS (kürzest) | : | #87ceeb | CSS (kürzest) | : | #6495ed | |
CSS (RGB) | : | rgb(135,206,235) | CSS (RGB) | : | rgb(100,149,237) | |
CSS (%RGB) | : | rgb(52%,80%,92%) | CSS (%RGB) | : | rgb(39%,58%,92%) |
Verlauf Hintergrundfarbe skyblue nach Schriftfarbe cornflowerblue | |||||||
#87ceeb | #82c5eb | #7dbdeb | #78b5eb | #73adec | #6ea5ec | #699dec | #6495ed |
#87ceeb | #82c5eb | #7dbdeb | #78b5eb | #73adec | #6ea5ec | #699dec | #6495ed |
Kombination von skyblue und cornflowerblue | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. | cornflowerblue eignet sich nicht als Schriftfarbe auf Hintergrund skyblue. Die Helligkeit und Farben sind sich zu ähnlich. Die Ähnlichkeit von cornflowerblue und skyblue beträgt 91.87%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 8.13%. |
Hintergrundfarbe skyblue | Schriftfarbe cornflowerblue | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#87ceeb | #87ceeb | #87ceeb | #87ceeb | #6495ed | #6495ed | #6495ed | #6495ed |
#98d5ed | #98d5ed | #73b0c9 | #73b0c9 | #7aa4ef | #7aa4ef | #557fcb | #557fcb |
#a9dcf0 | #a9dcf0 | #6093a7 | #6093a7 | #90b3f2 | #90b3f2 | #476aa9 | #476aa9 |
#bae3f3 | #bae3f3 | #4d7586 | #4d7586 | #a6c2f4 | #a6c2f4 | #395587 | #395587 |
#cbeaf6 | #cbeaf6 | #395864 | #395864 | #bcd1f7 | #bcd1f7 | #2a3f65 | #2a3f65 |
#dcf1f9 | #dcf1f9 | #263a43 | #263a43 | #d2e0f9 | #d2e0f9 | #1c2a43 | #1c2a43 |
#edf8fc | #edf8fc | #131d21 | #131d21 | #e8effc | #e8effc | #0e1521 | #0e1521 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe skyblue auf Farbe cornflowerblue ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst eine Formatierung von <dfn> in Farbe skyblue vor.
Wir legen hier die Textfarbe von <dfn> auf Farbe skyblue fest.
<style type="text/css"><!-- dfn { color:skyblue; } //--> </style>Jetzt fordern wir, dass sich bei Hover die Textfarbe auf cornflowerblue ändert.
<style type="text/css"><!-- dfn: hover { color: cornflowerblue; } //--> </style>
Weiteres zum Thema können Sie in Text in HTML nachsehen. Mehr zum Befehl dfn ist in der HTML Referenz bei <dfn> gezeigt.