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 #919191 | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund #919191 | Detail | : | Schrift #bababa | |
Farbwert | : | #919191 | Farbwert | : | #bababa | |
Farbe | : | gray145 | Farbe | : | gray186 | |
HTML | : | #919191 | HTML | : | #bababa | |
HTML (Wert) | : | #919191 | HTML (Wert) | : | #bababa | |
CSS | : | #919191 | CSS | : | #bababa | |
CSS (Wert) | : | #919191 | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #919191 | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(145,145,145) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(56%,56%,56%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbwert #919191 nach Schriftfarbwert #bababa | |||||||
#919191 | #969696 | #9c9c9c | #a2a2a2 | #a8a8a8 | #aeaeae | #b4b4b4 | #bababa |
#919191 | #969696 | #9c9c9c | #a2a2a2 | #a8a8a8 | #aeaeae | #b4b4b4 | #bababa |
Kombination von #919191 und #bababa | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | #bababa eignet sich nicht als Schriftfarbe auf Hintergrund #919191. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. Die Ähnlichkeit von #bababa und #919191 beträgt 92.27%. Die Lesbarkeit dieser Kombination ergibt sich zu 7.73%. |
Hintergrundfarbwert #919191 | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#919191 | #919191 | #919191 | #919191 | #bababa | #bababa | #bababa | #bababa |
#a0a0a0 | #a0a0a0 | #7c7c7c | #7c7c7c | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#b0b0b0 | #b0b0b0 | #676767 | #676767 | #cdcdcd | #cdcdcd | #848484 | #848484 |
#c0c0c0 | #c0c0c0 | #525252 | #525252 | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#cfcfcf | #cfcfcf | #3e3e3e | #3e3e3e | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#dfdfdf | #dfdfdf | #292929 | #292929 | #ebebeb | #ebebeb | #353535 | #353535 |
#efefef | #efefef | #141414 | #141414 | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Rahmenfarbe soll sich von Farbwert #919191 auf Farbwert #bababa ändern, wenn man mit der Maus auf <center> zeigt. Bereiten wir zunächst eine Formatierung von <center> in Farbwert #919191 vor.
In diesem Beispiel umranden wir <center> mit einem 2 Pixel dicken, doppelten Rahmen in Farbwert #919191.
<style type="text/css"><!-- center { border-color:#919191; border-style:double; border-width:2px; } //--> </style>Nun stellen wir ein, dass bei Berührung mit der Maus die Rahmenfarbe auf #bababa geändert wird.
<style type="text/css"><!-- center: hover { border-color: #bababa; } //--> </style>
Weiteres zum Thema center können Sie in Grundlegende Gestaltungselemente in HTML finden. Weiteres zum HTML-Tag <center>.