von Thomas Salvador.
Graustufen gehören zu den unbunten Farben und zeichnen sich dadurch aus, dass ihre Farbwerte für Rot, Grün und Blau gleich sind.
Graustufen enthalten natürlich alle 16 Graustufen und insbesondere die unbunten Grundfarben Schwarz und Weiß.
Um 256 Graustufen in HTML bzw. CSS zu erzeugen, wählen wir Farbwerte rr, gg und bb mit Werten von 0 bis 255 (d.h. hexadezimal 00 bis ff).
Hintergrundfarbwert #f2f2f2 | Schriftfarbwert #aeaeae | |||||
Detail | : | Hintergrund #f2f2f2 | Detail | : | Schrift #aeaeae | |
Farbwert | : | #f2f2f2 | Farbwert | : | #aeaeae | |
Farbe | : | gray242 | Farbe | : | gray174 | |
HTML | : | #f2f2f2 | HTML | : | #aeaeae | |
HTML (Wert) | : | #f2f2f2 | HTML (Wert) | : | #aeaeae | |
CSS | : | #f2f2f2 | CSS | : | #aeaeae | |
CSS (Wert) | : | #f2f2f2 | CSS (Wert) | : | #aeaeae | |
CSS (kürzest) | : | #f2f2f2 | CSS (kürzest) | : | #aeaeae | |
CSS (RGB) | : | rgb(242,242,242) | CSS (RGB) | : | rgb(174,174,174) | |
CSS (%RGB) | : | rgb(94%,94%,94%) | CSS (%RGB) | : | rgb(68%,68%,68%) |
Verlauf Hintergrundfarbwert #f2f2f2 nach Schriftfarbwert #aeaeae | |||||||
#f2f2f2 | #e8e8e8 | #dedede | #d4d4d4 | #cbcbcb | #c1c1c1 | #b7b7b7 | #aeaeae |
#f2f2f2 | #e8e8e8 | #dedede | #d4d4d4 | #cbcbcb | #c1c1c1 | #b7b7b7 | #aeaeae |
Kombination von #f2f2f2 und #aeaeae | |||||||
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. | #aeaeae ist nicht als Schriftfarbe auf Hintergrund #f2f2f2 geeignet. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. Die Ähnlichkeit der Farben #aeaeae und #f2f2f2 beträgt 90.56%. Die Lesbarkeit dieser Kombination liegt damit bei 9.44%. |
Hintergrundfarbwert #f2f2f2 | Schriftfarbwert #aeaeae | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#f2f2f2 | #f2f2f2 | #f2f2f2 | #f2f2f2 | #aeaeae | #aeaeae | #aeaeae | #aeaeae |
#f3f3f3 | #f3f3f3 | #cfcfcf | #cfcfcf | #b9b9b9 | #b9b9b9 | #959595 | #959595 |
#f5f5f5 | #f5f5f5 | #acacac | #acacac | #c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c |
#f7f7f7 | #f7f7f7 | #8a8a8a | #8a8a8a | #d0d0d0 | #d0d0d0 | #636363 | #636363 |
#f9f9f9 | #f9f9f9 | #676767 | #676767 | #dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a |
#fbfbfb | #fbfbfb | #454545 | #454545 | #e7e7e7 | #e7e7e7 | #313131 | #313131 |
#fdfdfd | #fdfdfd | #222222 | #222222 | #f3f3f3 | #f3f3f3 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #f2f2f2 auf Farbwert #aeaeae ändern, wenn man mit der Maus auf <label> zeigt. Bereiten wir zunächst die Formatierung von <label> in Farbwert #f2f2f2 vor.
Z.B. setzen wir die Textfarbe von <label> auf Farbwert #f2f2f2:
<style type="text/css"><!-- label { color: #f2f2f2; } //--> </style>Nun stellen wir ein, dass bei Hover die Textfarbe auf #aeaeae gesetzt wird.
<style type="text/css"><!-- label: hover { color: #aeaeae; } //--> </style>
Mehr zu label finden Sie in Formulare in HTML. Beschreibung des HTML-Tag <label>.