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 #7a7a7a | Schriftfarbwert #a8a8a8 | |||||
Detail | : | Hintergrund #7a7a7a | Detail | : | Schrift #a8a8a8 | |
Farbwert | : | #7a7a7a | Farbwert | : | #a8a8a8 | |
Farbe | : | gray122 | Farbe | : | gray168 | |
HTML | : | #7a7a7a | HTML | : | #a8a8a8 | |
HTML (Wert) | : | #7a7a7a | HTML (Wert) | : | #a8a8a8 | |
CSS | : | #7a7a7a | CSS | : | #a8a8a8 | |
CSS (Wert) | : | #7a7a7a | CSS (Wert) | : | #a8a8a8 | |
CSS (kürzest) | : | #7a7a7a | CSS (kürzest) | : | #a8a8a8 | |
CSS (RGB) | : | rgb(122,122,122) | CSS (RGB) | : | rgb(168,168,168) | |
CSS (%RGB) | : | rgb(47%,47%,47%) | CSS (%RGB) | : | rgb(65%,65%,65%) |
Verlauf Hintergrundfarbwert #7a7a7a nach Schriftfarbwert #a8a8a8 | |||||||
#7a7a7a | #808080 | #878787 | #8d8d8d | #949494 | #9a9a9a | #a1a1a1 | #a8a8a8 |
#7a7a7a | #808080 | #878787 | #8d8d8d | #949494 | #9a9a9a | #a1a1a1 | #a8a8a8 |
Kombination von #7a7a7a und #a8a8a8 | |||||||
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. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit der Farben #a8a8a8 und #7a7a7a ergibt sich zu 91.40%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 8.60%. Auf Hintergrund #7a7a7a ist #a8a8a8 ungeeignet, weil die Helligkeit und Farben zu ähnlich sind. |
Hintergrundfarbwert #7a7a7a | Schriftfarbwert #a8a8a8 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#7a7a7a | #7a7a7a | #7a7a7a | #7a7a7a | #a8a8a8 | #a8a8a8 | #a8a8a8 | #a8a8a8 |
#8d8d8d | #8d8d8d | #686868 | #686868 | #b4b4b4 | #b4b4b4 | #909090 | #909090 |
#a0a0a0 | #a0a0a0 | #575757 | #575757 | #c0c0c0 | #c0c0c0 | #787878 | #787878 |
#b3b3b3 | #b3b3b3 | #454545 | #454545 | #cdcdcd | #cdcdcd | #606060 | #606060 |
#c6c6c6 | #c6c6c6 | #343434 | #343434 | #d9d9d9 | #d9d9d9 | #484848 | #484848 |
#d9d9d9 | #d9d9d9 | #222222 | #222222 | #e6e6e6 | #e6e6e6 | #303030 | #303030 |
#ececec | #ececec | #111111 | #111111 | #f2f2f2 | #f2f2f2 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <pre> auf Farbwert #a8a8a8 und die Hintergrundfarbe von <pre> auf Farbwert #7a7a7a. Als Schriftart wählen wir sans-serif und als Schriftgröße wählen wir 123%.
<style type="text/css"><!-- pre { color: #a8a8a8; font-size: 123%; background-color: #7a7a7a; font-family: sans-serif; } //--> </style>
Weiteres zu pre können Sie in Blockorientierte Elemente in HTML finden. Weiteres zum HTML-Befehl <pre>.