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 #a3a3a3 | Schriftfarbwert #707070 | |||||
Detail | : | Hintergrund #a3a3a3 | Detail | : | Schrift #707070 | |
Farbwert | : | #a3a3a3 | Farbwert | : | #707070 | |
Farbe | : | gray163 | Farbe | : | gray112 | |
HTML | : | #a3a3a3 | HTML | : | #707070 | |
HTML (Wert) | : | #a3a3a3 | HTML (Wert) | : | #707070 | |
CSS | : | #a3a3a3 | CSS | : | #707070 | |
CSS (Wert) | : | #a3a3a3 | CSS (Wert) | : | #707070 | |
CSS (kürzest) | : | #a3a3a3 | CSS (kürzest) | : | #707070 | |
CSS (RGB) | : | rgb(163,163,163) | CSS (RGB) | : | rgb(112,112,112) | |
CSS (%RGB) | : | rgb(63%,63%,63%) | CSS (%RGB) | : | rgb(43%,43%,43%) |
Verlauf Hintergrundfarbwert #a3a3a3 nach Schriftfarbwert #707070 | |||||||
#a3a3a3 | #9b9b9b | #949494 | #8d8d8d | #858585 | #7e7e7e | #777777 | #707070 |
#a3a3a3 | #9b9b9b | #949494 | #8d8d8d | #858585 | #7e7e7e | #777777 | #707070 |
Kombination von #a3a3a3 und #707070 | |||||||
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. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | #707070 ist nicht als Schriftfarbe auf Hintergrund #a3a3a3 geeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von #707070 und #a3a3a3 ergibt sich zu 90.65%. Die Lesbarkeit dieser Kombination bewerte ich mit 9.35%. |
Hintergrundfarbwert #a3a3a3 | Schriftfarbwert #707070 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a3a3a3 | #a3a3a3 | #a3a3a3 | #a3a3a3 | #707070 | #707070 | #707070 | #707070 |
#b0b0b0 | #b0b0b0 | #8b8b8b | #8b8b8b | #848484 | #848484 | #606060 | #606060 |
#bdbdbd | #bdbdbd | #747474 | #747474 | #989898 | #989898 | #505050 | #505050 |
#cacaca | #cacaca | #5d5d5d | #5d5d5d | #adadad | #adadad | #404040 | #404040 |
#d7d7d7 | #d7d7d7 | #454545 | #454545 | #c1c1c1 | #c1c1c1 | #303030 | #303030 |
#e4e4e4 | #e4e4e4 | #2e2e2e | #2e2e2e | #d6d6d6 | #d6d6d6 | #202020 | #202020 |
#f1f1f1 | #f1f1f1 | #171717 | #171717 | #eaeaea | #eaeaea | #101010 | #101010 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <col> auf Farbwert #707070 und die Hintergrundfarbe von <col> auf Farbwert #a3a3a3. Als Schriftart wählen wir monospace und setzen die Schriftgröße auf 9px.
<style type="text/css"><!-- col { color:#707070; font-family:monospace; font-size:9px; background-color:#a3a3a3; } //--> </style>
Weiteres zum Thema col finden Sie in Tabellen in HTML. Die Beschreibung vom hier gezeigten HTML-Tag col lesen Sie in der HTML Referenz unter <col>.
Die Rahmenfarbe soll sich von Farbwert #a3a3a3 auf Farbwert #707070 ändern, wenn man mit der Maus auf <frameset> zeigt. Bereiten wir zunächst eine Darstellung von <frameset> in Farbwert #a3a3a3 vor.
In diesem Beispiel umranden wir <frameset> mit einem 1 Pixel dicken, doppelten Rahmen in Farbwert #a3a3a3.
<style type="text/css"><!-- frameset { border-style:double; border-width:1px; border-color:#a3a3a3; } //--> </style>Jetzt stellen wir ein, dass sich bei Berührung mit der Maus die Rahmenfarbe zu #707070 ändert.
<style type="text/css"><!-- frameset:hover { border-color:#707070; } //--> </style>
Weiteres zum Tag <frameset>.