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 #bababa | Schriftfarbwert #444444 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift #444444 | |
Farbwert | : | #bababa | Farbwert | : | #444444 | |
Farbe | : | gray186 | Farbe | : | gray68 | |
HTML | : | #bababa | HTML | : | #444444 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #444444 | |
CSS | : | #bababa | CSS | : | #444444 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #444444 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #444 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(68,68,68) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(26%,26%,26%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbwert #444444 | |||||||
#bababa | #a9a9a9 | #989898 | #878787 | #767676 | #656565 | #545454 | #444444 |
#bababa | #a9a9a9 | #989898 | #878787 | #767676 | #656565 | #545454 | #444444 |
Kombination von #bababa und #444444 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit der Farben #444444 und #bababa beträgt 76.10%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 23.90%. Auf Hintergrund #bababa ist #444444 ungeeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. |
Hintergrundfarbwert #bababa | Schriftfarbwert #444444 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #444444 | #444444 | #444444 | #444444 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #5e5e5e | #5e5e5e | #3a3a3a | #3a3a3a |
#cdcdcd | #cdcdcd | #848484 | #848484 | #797979 | #797979 | #303030 | #303030 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #949494 | #949494 | #262626 | #262626 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #aeaeae | #aeaeae | #1d1d1d | #1d1d1d |
#ebebeb | #ebebeb | #353535 | #353535 | #c9c9c9 | #c9c9c9 | #131313 | #131313 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e4e4e4 | #e4e4e4 | #090909 | #090909 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #bababa auf Farbwert #444444 ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst eine Darstellung von <center> in Farbwert #bababa vor.
Z.B. legen wir Farbwert #bababa als Textfarbe von <center> fest. Die Hintergrundfarbe verändern wir nicht. Die Schriftart setzen wir auf sans-serif.
<style type="text/css"><!-- center { font-family:sans-serif; color:#bababa; } //--> </style>Nun stellen wir ein, dass bei Hover die Textfarbe auf #444444 gesetzt wird.
<style type="text/css"><!-- center:hover { color:#444444; } //--> </style>
Weiteres zu center können Sie in Grundlegende Gestaltungselemente in HTML finden. Der hier genutzte HTML-Befehl center ist in der HTML Referenz unter <center> genau gezeigt.