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 #5a5a5a | Schriftfarbwert #666666 | |||||
Detail | : | Hintergrund #5a5a5a | Detail | : | Schrift #666666 | |
Farbwert | : | #5a5a5a | Farbwert | : | #666666 | |
Farbe | : | gray90 | Farbe | : | gray102 | |
HTML | : | #5a5a5a | HTML | : | #666666 | |
HTML (Wert) | : | #5a5a5a | HTML (Wert) | : | #666666 | |
CSS | : | #5a5a5a | CSS | : | #666666 | |
CSS (Wert) | : | #5a5a5a | CSS (Wert) | : | #666666 | |
CSS (kürzest) | : | #5a5a5a | CSS (kürzest) | : | #666 | |
CSS (RGB) | : | rgb(90,90,90) | CSS (RGB) | : | rgb(102,102,102) | |
CSS (%RGB) | : | rgb(35%,35%,35%) | CSS (%RGB) | : | rgb(40%,40%,40%) |
Verlauf Hintergrundfarbwert #5a5a5a nach Schriftfarbwert #666666 | |||||||
#5a5a5a | #5b5b5b | #5d5d5d | #5f5f5f | #606060 | #626262 | #646464 | #666666 |
#5a5a5a | #5b5b5b | #5d5d5d | #5f5f5f | #606060 | #626262 | #646464 | #666666 |
Kombination von #5a5a5a und #666666 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #666666 und #5a5a5a ergibt sich zu 94.28%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 5.72%. #666666 ist nicht als Schriftfarbe auf Hintergrund #5a5a5a geeignet. Die Unterschiede in der Helligkeit und Farbe sind unzureichend. |
Hintergrundfarbwert #5a5a5a | Schriftfarbwert #666666 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#5a5a5a | #5a5a5a | #5a5a5a | #5a5a5a | #666666 | #666666 | #666666 | #666666 |
#717171 | #717171 | #4d4d4d | #4d4d4d | #7b7b7b | #7b7b7b | #575757 | #575757 |
#898989 | #898989 | #404040 | #404040 | #919191 | #919191 | #484848 | #484848 |
#a0a0a0 | #a0a0a0 | #333333 | #333333 | #a7a7a7 | #a7a7a7 | #3a3a3a | #3a3a3a |
#b8b8b8 | #b8b8b8 | #262626 | #262626 | #bdbdbd | #bdbdbd | #2b2b2b | #2b2b2b |
#cfcfcf | #cfcfcf | #191919 | #191919 | #d3d3d3 | #d3d3d3 | #1d1d1d | #1d1d1d |
#e7e7e7 | #e7e7e7 | #0c0c0c | #0c0c0c | #e9e9e9 | #e9e9e9 | #0e0e0e | #0e0e0e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <dt> mit einem doppelten, 1 Pixel dicken Rahmen in Farbwert #666666 . Die Hintergrundfarbe für <dt> färben wir entsprechend mit Farbwert #5a5a5a. Das geht in HTML nicht. Daher formatieren wir mit CSS.
<style type="text/css"><!-- dt { border:1px double #666666; background-color:#5a5a5a; } //--> </style>
Weiteres zum Thema dt erfahren Sie in Listen und Glossare in HTML. Die Beschreibung vom HTML-Befehl dt finden Sie in der HTML Referenz unter <dt>.