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 #818181 | Schriftfarbwert #666666 | |||||
Detail | : | Hintergrund #818181 | Detail | : | Schrift #666666 | |
Farbwert | : | #818181 | Farbwert | : | #666666 | |
Farbe | : | gray129 | Farbe | : | gray102 | |
HTML | : | #818181 | HTML | : | #666666 | |
HTML (Wert) | : | #818181 | HTML (Wert) | : | #666666 | |
CSS | : | #818181 | CSS | : | #666666 | |
CSS (Wert) | : | #818181 | CSS (Wert) | : | #666666 | |
CSS (kürzest) | : | #818181 | CSS (kürzest) | : | #666 | |
CSS (RGB) | : | rgb(129,129,129) | CSS (RGB) | : | rgb(102,102,102) | |
CSS (%RGB) | : | rgb(50%,50%,50%) | CSS (%RGB) | : | rgb(40%,40%,40%) |
Verlauf Hintergrundfarbwert #818181 nach Schriftfarbwert #666666 | |||||||
#818181 | #7d7d7d | #797979 | #757575 | #717171 | #6d6d6d | #696969 | #666666 |
#818181 | #7d7d7d | #797979 | #757575 | #717171 | #6d6d6d | #696969 | #666666 |
Kombination von #818181 und #666666 | |||||||
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. Cras vestibulum tristique erat, ac interdum justo cursus in. | #666666 eignet sich nicht als Schriftfarbe auf Hintergrund #818181. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit von #666666 und #818181 beträgt 92.98%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 7.02%. |
Hintergrundfarbwert #818181 | Schriftfarbwert #666666 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#818181 | #818181 | #818181 | #818181 | #666666 | #666666 | #666666 | #666666 |
#939393 | #939393 | #6e6e6e | #6e6e6e | #7b7b7b | #7b7b7b | #575757 | #575757 |
#a5a5a5 | #a5a5a5 | #5c5c5c | #5c5c5c | #919191 | #919191 | #484848 | #484848 |
#b7b7b7 | #b7b7b7 | #494949 | #494949 | #a7a7a7 | #a7a7a7 | #3a3a3a | #3a3a3a |
#c9c9c9 | #c9c9c9 | #373737 | #373737 | #bdbdbd | #bdbdbd | #2b2b2b | #2b2b2b |
#dbdbdb | #dbdbdb | #242424 | #242424 | #d3d3d3 | #d3d3d3 | #1d1d1d | #1d1d1d |
#ededed | #ededed | #121212 | #121212 | #e9e9e9 | #e9e9e9 | #0e0e0e | #0e0e0e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <address> auf Farbwert #666666. Die Schriftart ändern wir auf courier new. Die Schriftgröße ändern wir auf 14px. Wir unterstreichen den Inhalt von <address> mit Hilfe eines gezahnten Rahmens mit 4 Punkte Dicke in Farbwert #818181. Mit HTML ist dies nicht möglich. Daher nutzen wir hier CSS zur Formatierung.
<style type="text/css"><!-- address { border-bottom-width: 4pt; border-bottom-color: #818181; border-bottom-style: ridge; font-family: courier new; font-size: 14px; color: #666; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zu address können Sie in Blockorientierte Elemente in HTML finden. Einzelheiten des hier gezeigten HTML-Befehl <address>.