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 #bcbcbc | Schriftfarbe gray23 | |||||
Detail | : | Hintergrund #bcbcbc | Detail | : | Schrift gray23 | |
Farbwert | : | #bcbcbc | Farbe | : | gray23 | |
Farbe | : | gray188 | Farbwert | : | #171717 | |
HTML | : | #bcbcbc | HTML | : | gray23 | |
HTML (Wert) | : | #bcbcbc | HTML (Wert) | : | #171717 | |
CSS | : | #bcbcbc | CSS | : | gray23 | |
CSS (Wert) | : | #bcbcbc | CSS (Wert) | : | #171717 | |
CSS (kürzest) | : | #bcbcbc | CSS (kürzest) | : | #171717 | |
CSS (RGB) | : | rgb(188,188,188) | CSS (RGB) | : | rgb(23,23,23) | |
CSS (%RGB) | : | rgb(73%,73%,73%) | CSS (%RGB) | : | rgb(9%,9%,9%) |
Verlauf Hintergrundfarbwert #bcbcbc nach Schriftfarbe gray23 | |||||||
#bcbcbc | #a4a4a4 | #8c8c8c | #757575 | #5d5d5d | #464646 | #2e2e2e | #171717 |
#bcbcbc | #a4a4a4 | #8c8c8c | #757575 | #5d5d5d | #464646 | #2e2e2e | #171717 |
Kombination von #bcbcbc und gray23 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. | gray23 eignet sich nicht als Schriftfarbe auf Hintergrund #bcbcbc. Zwar ist der Helligkeitsunterschied gross genug, die Farben selbst sind jedoch zu ähnlich. Die Ähnlichkeit der Farben gray23 und #bcbcbc beträgt 55.05%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 44.95%. |
Hintergrundfarbwert #bcbcbc | Schriftfarbe gray23 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bcbcbc | #bcbcbc | #bcbcbc | #bcbcbc | #171717 | #171717 | #171717 | #171717 |
#c5c5c5 | #c5c5c5 | #a1a1a1 | #a1a1a1 | #383838 | #383838 | #131313 | #131313 |
#cfcfcf | #cfcfcf | #868686 | #868686 | #595959 | #595959 | #101010 | #101010 |
#d8d8d8 | #d8d8d8 | #6b6b6b | #6b6b6b | #7a7a7a | #7a7a7a | #0d0d0d | #0d0d0d |
#e2e2e2 | #e2e2e2 | #505050 | #505050 | #9b9b9b | #9b9b9b | #090909 | #090909 |
#ebebeb | #ebebeb | #353535 | #353535 | #bcbcbc | #bcbcbc | #060606 | #060606 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #dddddd | #dddddd | #030303 | #030303 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <frameset> mit einem . Die Hintergrundfarbe für <frameset> setzen wir entsprechend auf Farbwert #bcbcbc. Mit HTML ist das nicht machbar. Deshalb formatieren wir hier mit CSS.
<style type="text/css"><!-- frameset { border-style: dotted; border-color: gray23; background-color: #bcbcbc; border-width: 2pt; } //--> </style>
Zur Beschreibung des HTML-Befehl <frameset>.
Bei diesem Beispiel ändern wir die Textfarbe von <tbody> auf Farbe gray23 und die Hintergrundfarbe von <tbody> auf Farbwert #bcbcbc. Die Schriftart ändern wir auf monospace. Als Schriftgröße wählen wir 10px.
<style type="text/css"><!-- tbody { font-family: monospace; color: gray23; background-color: #bcbcbc; font-size: 10px; } //--> </style>
Weiteres zu tbody können Sie in Tabellen in HTML erfahren. Möglichkeiten vom hier gezeigten HTML-Befehl <tbody>.