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 #939393 | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund #939393 | Detail | : | Schrift #bababa | |
Farbwert | : | #939393 | Farbwert | : | #bababa | |
Farbe | : | gray147 | Farbe | : | gray186 | |
HTML | : | #939393 | HTML | : | #bababa | |
HTML (Wert) | : | #939393 | HTML (Wert) | : | #bababa | |
CSS | : | #939393 | CSS | : | #bababa | |
CSS (Wert) | : | #939393 | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #939393 | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(147,147,147) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(57%,57%,57%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbwert #939393 nach Schriftfarbwert #bababa | |||||||
#939393 | #989898 | #9e9e9e | #a3a3a3 | #a9a9a9 | #aeaeae | #b4b4b4 | #bababa |
#939393 | #989898 | #9e9e9e | #a3a3a3 | #a9a9a9 | #aeaeae | #b4b4b4 | #bababa |
Kombination von #939393 und #bababa | |||||||
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. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #bababa und #939393 beträgt 92.46%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 7.54%. Auf Hintergrund #939393 ist #bababa ungeeignet, da sich die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbwert #939393 | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#939393 | #939393 | #939393 | #939393 | #bababa | #bababa | #bababa | #bababa |
#a2a2a2 | #a2a2a2 | #7e7e7e | #7e7e7e | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#b1b1b1 | #b1b1b1 | #696969 | #696969 | #cdcdcd | #cdcdcd | #848484 | #848484 |
#c1c1c1 | #c1c1c1 | #545454 | #545454 | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#d0d0d0 | #d0d0d0 | #3f3f3f | #3f3f3f | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#e0e0e0 | #e0e0e0 | #2a2a2a | #2a2a2a | #ebebeb | #ebebeb | #353535 | #353535 |
#efefef | #efefef | #151515 | #151515 | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #939393 auf Farbwert #bababa ändern, wenn man mit der Maus auf <address> zeigt. Bereiten wir zunächst eine Formatierung von <address> in Farbwert #939393 vor.
Hier setzen wir bei <address> die Textfarbe auf Farbwert #939393. Die Hintergrundfarbe ändern wir nicht. Die Schriftart ändern wir auf arial. Die Größe der Schrift verringern wir auf 92%:
<style type="text/css"><!-- address { font-size:92%; color:#939393; font-family:arial; } //--> </style>Jetzt fordern wir, dass sich bei Mausberührung die Textfarbe zu #bababa ändert.
<style type="text/css"><!-- address:hover { color:#bababa; } //--> </style>
Mehr zu address finden Sie in Blockorientierte Elemente in HTML. Mehr zum HTML-Tag <address>.