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 #a4a4a4 | Schriftfarbwert #090909 | |||||
Detail | : | Hintergrund #a4a4a4 | Detail | : | Schrift #090909 | |
Farbwert | : | #a4a4a4 | Farbwert | : | #090909 | |
Farbe | : | gray164 | Farbe | : | gray9 | |
HTML | : | #a4a4a4 | HTML | : | #090909 | |
HTML (Wert) | : | #a4a4a4 | HTML (Wert) | : | #090909 | |
CSS | : | #a4a4a4 | CSS | : | #090909 | |
CSS (Wert) | : | #a4a4a4 | CSS (Wert) | : | #090909 | |
CSS (kürzest) | : | #a4a4a4 | CSS (kürzest) | : | #090909 | |
CSS (RGB) | : | rgb(164,164,164) | CSS (RGB) | : | rgb(9,9,9) | |
CSS (%RGB) | : | rgb(64%,64%,64%) | CSS (%RGB) | : | rgb(3%,3%,3%) |
Verlauf Hintergrundfarbwert #a4a4a4 nach Schriftfarbwert #090909 | |||||||
#a4a4a4 | #8d8d8d | #777777 | #616161 | #4b4b4b | #353535 | #1f1f1f | #090909 |
#a4a4a4 | #8d8d8d | #777777 | #616161 | #4b4b4b | #353535 | #1f1f1f | #090909 |
Kombination von #a4a4a4 und #090909 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | Die Ähnlichkeit der Farben #090909 und #a4a4a4 beträgt 61.96%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 38.04%. Auf Hintergrund #a4a4a4 ist #090909 ungeeignet. Zwar ist der Helligkeitsunterschied gross genug, doch die Farben selbst sind zu ähnlich. |
Hintergrundfarbwert #a4a4a4 | Schriftfarbwert #090909 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a4a4a4 | #a4a4a4 | #a4a4a4 | #a4a4a4 | #090909 | #090909 | #090909 | #090909 |
#b1b1b1 | #b1b1b1 | #8c8c8c | #8c8c8c | #2c2c2c | #2c2c2c | #070707 | #070707 |
#bebebe | #bebebe | #757575 | #757575 | #4f4f4f | #4f4f4f | #060606 | #060606 |
#cbcbcb | #cbcbcb | #5d5d5d | #5d5d5d | #727272 | #727272 | #050505 | #050505 |
#d8d8d8 | #d8d8d8 | #464646 | #464646 | #959595 | #959595 | #030303 | #030303 |
#e5e5e5 | #e5e5e5 | #2e2e2e | #2e2e2e | #b8b8b8 | #b8b8b8 | #020202 | #020202 |
#f2f2f2 | #f2f2f2 | #171717 | #171717 | #dbdbdb | #dbdbdb | #010101 | #010101 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <q> auf Farbwert #090909 und die Hintergrundfarbe von <q> auf Farbwert #a4a4a4. Die Schriftart ändern wir auf courier new. Als Schriftgröße setzen wir 13px.
<style type="text/css"><!-- q { color: #090909; font-family: courier new; font-size: 13px; background-color: #a4a4a4; } //--> </style>
Die Beschreibung vom HTML-Befehl q erfahren Sie in der HTML Referenz unter <q>.
Hier umranden wir <ins> mit einem gestrichelten, 1 Pixel dicken Rahmen in Farbwert #090909 . Die Hintergrundfarbe für <ins> setzen wir entsprechend auf Farbwert #a4a4a4. Mit HTML ist dies kaum möglich. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- ins { border:1px dashed #090909; background-color:#a4a4a4; } //--> </style>
Möglichkeiten vom hier gezeigten Befehl <ins>.