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 #b8b8b8 | Schriftfarbe gray68 | |||||
Detail | : | Hintergrund #b8b8b8 | Detail | : | Schrift gray68 | |
Farbwert | : | #b8b8b8 | Farbe | : | gray68 | |
Farbe | : | gray184 | Farbwert | : | #444444 | |
HTML | : | #b8b8b8 | HTML | : | gray68 | |
HTML (Wert) | : | #b8b8b8 | HTML (Wert) | : | #444444 | |
CSS | : | #b8b8b8 | CSS | : | gray68 | |
CSS (Wert) | : | #b8b8b8 | CSS (Wert) | : | #444444 | |
CSS (kürzest) | : | #b8b8b8 | CSS (kürzest) | : | #444 | |
CSS (RGB) | : | rgb(184,184,184) | CSS (RGB) | : | rgb(68,68,68) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(26%,26%,26%) |
Verlauf Hintergrundfarbwert #b8b8b8 nach Schriftfarbe gray68 | |||||||
#b8b8b8 | #a7a7a7 | #969696 | #868686 | #757575 | #656565 | #545454 | #444444 |
#b8b8b8 | #a7a7a7 | #969696 | #868686 | #757575 | #656565 | #545454 | #444444 |
Kombination von #b8b8b8 und gray68 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. | gray68 eignet sich nicht als Schriftfarbe auf Hintergrund #b8b8b8. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit von gray68 und #b8b8b8 beträgt 76.62%. Die Lesbarkeit dieser Farbkombination liegt damit bei 23.38%. |
Hintergrundfarbwert #b8b8b8 | Schriftfarbe gray68 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b8b8b8 | #b8b8b8 | #b8b8b8 | #b8b8b8 | #444444 | #444444 | #444444 | #444444 |
#c2c2c2 | #c2c2c2 | #9d9d9d | #9d9d9d | #5e5e5e | #5e5e5e | #3a3a3a | #3a3a3a |
#cccccc | #cccccc | #838383 | #838383 | #797979 | #797979 | #303030 | #303030 |
#d6d6d6 | #d6d6d6 | #696969 | #696969 | #949494 | #949494 | #262626 | #262626 |
#e0e0e0 | #e0e0e0 | #4e4e4e | #4e4e4e | #aeaeae | #aeaeae | #1d1d1d | #1d1d1d |
#eaeaea | #eaeaea | #343434 | #343434 | #c9c9c9 | #c9c9c9 | #131313 | #131313 |
#f4f4f4 | #f4f4f4 | #1a1a1a | #1a1a1a | #e4e4e4 | #e4e4e4 | #090909 | #090909 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #b8b8b8 auf Farbe gray68 ändern, wenn man mit der Maus auf <colgroup> zeigt. Wir bereiten zunächst eine Darstellung von <colgroup> in Farbwert #b8b8b8 vor.
Wir setzen in diesem Beispiel die Textfarbe von <colgroup> auf Farbwert #b8b8b8.
<style type="text/css"><!-- colgroup { color: #b8b8b8; } //--> </style>Jetzt stellen wir ein, dass sich bei Berührung mit der Maus die Textfarbe auf gray68 ändert.
<style type="text/css"><!-- colgroup: hover { color: gray68; } //--> </style>
Weiteres zum Thema können Sie in Tabellen in HTML nachsehen. Zur Beschreibung des hier verwendeten Befehl <colgroup>.
Für dieses Beispiel ändern wir die Textfarbe von <thead> auf Farbe gray68 und die Hintergrundfarbe von <thead> auf Farbwert #b8b8b8. Die Schriftart setzen wir auf arial und ändern die Schriftgröße auf 9pt.
<style type="text/css"><!-- thead { font-family:arial; font-size:9pt; color:gray68; background-color:#b8b8b8; } //--> </style>
Mehr zu thead können Sie in Tabellen in HTML finden. Der HTML-Befehl thead ist in der HTML Referenz unter <thead> gezeigt.