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).
Hintergrundfarbe gray106 | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund gray106 | Detail | : | Schrift #bababa | |
Farbe | : | gray106 | Farbwert | : | #bababa | |
Farbwert | : | #6a6a6a | Farbe | : | gray186 | |
HTML | : | gray106 | HTML | : | #bababa | |
HTML (Wert) | : | #6a6a6a | HTML (Wert) | : | #bababa | |
CSS | : | gray106 | CSS | : | #bababa | |
CSS (Wert) | : | #6a6a6a | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #6a6a6a | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(106,106,106) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(41%,41%,41%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbe gray106 nach Schriftfarbwert #bababa | |||||||
#6a6a6a | #757575 | #808080 | #8c8c8c | #979797 | #a3a3a3 | #aeaeae | #bababa |
#6a6a6a | #757575 | #808080 | #8c8c8c | #979797 | #a3a3a3 | #aeaeae | #bababa |
Kombination von gray106 und #bababa | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. | Die Ähnlichkeit von #bababa und gray106 beträgt 86.73%. Die Lesbarkeit dieser Kombination ergibt sich zu 13.27%. #bababa ist nicht als Schriftfarbe auf Hintergrund gray106 geeignet. Die Unterschiede in der Helligkeit und Farbe sind unzureichend. |
Hintergrundfarbe gray106 | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#6a6a6a | #6a6a6a | #6a6a6a | #6a6a6a | #bababa | #bababa | #bababa | #bababa |
#7f7f7f | #7f7f7f | #5a5a5a | #5a5a5a | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#949494 | #949494 | #4b4b4b | #4b4b4b | #cdcdcd | #cdcdcd | #848484 | #848484 |
#a9a9a9 | #a9a9a9 | #3c3c3c | #3c3c3c | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#bfbfbf | #bfbfbf | #2d2d2d | #2d2d2d | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#d4d4d4 | #d4d4d4 | #1e1e1e | #1e1e1e | #ebebeb | #ebebeb | #353535 | #353535 |
#e9e9e9 | #e9e9e9 | #0f0f0f | #0f0f0f | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern Hher die Textfarbe von <address> auf Farbwert #bababa. Die Schriftart ändern wir auf verdana und setzen die Schriftgröße auf 13px. Wir unterstreichen den Inhalt von <address> mit Hilfe eines gestrichelten Rahmens mit 5 Punkte Dicke in Farbe gray106. Mit HTML ist dies nicht möglich. Wir verwenden deshalb CSS zur Formatierung.
<style type="text/css"><!-- address { color: #bababa; font-family: verdana; border-bottom: 5pt dashed gray106; font-size: 13px; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zu address finden Sie in Blockorientierte Elemente in HTML. Mehr zum HTML-Tag <address>.