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 gray99 | Schriftfarbwert #868686 | |||||
Detail | : | Hintergrund gray99 | Detail | : | Schrift #868686 | |
Farbe | : | gray99 | Farbwert | : | #868686 | |
Farbwert | : | #636363 | Farbe | : | gray134 | |
HTML | : | gray99 | HTML | : | #868686 | |
HTML (Wert) | : | #636363 | HTML (Wert) | : | #868686 | |
CSS | : | gray99 | CSS | : | #868686 | |
CSS (Wert) | : | #636363 | CSS (Wert) | : | #868686 | |
CSS (kürzest) | : | #636363 | CSS (kürzest) | : | #868686 | |
CSS (RGB) | : | rgb(99,99,99) | CSS (RGB) | : | rgb(134,134,134) | |
CSS (%RGB) | : | rgb(38%,38%,38%) | CSS (%RGB) | : | rgb(52%,52%,52%) |
Verlauf Hintergrundfarbe gray99 nach Schriftfarbwert #868686 | |||||||
#636363 | #686868 | #6d6d6d | #727272 | #777777 | #7c7c7c | #818181 | #868686 |
#636363 | #686868 | #6d6d6d | #727272 | #777777 | #7c7c7c | #818181 | #868686 |
Kombination von gray99 und #868686 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit der Farben #868686 und gray99 ergibt sich zu 92.14%. Die Lesbarkeit dieser Farbkombination liegt damit bei 7.86%. #868686 eignet sich nicht als Schriftfarbe auf Hintergrund gray99. Die Helligkeit und Farben sind sich zu ähnlich. |
Hintergrundfarbe gray99 | Schriftfarbwert #868686 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#636363 | #636363 | #636363 | #636363 | #868686 | #868686 | #868686 | #868686 |
#797979 | #797979 | #545454 | #545454 | #979797 | #979797 | #727272 | #727272 |
#8f8f8f | #8f8f8f | #464646 | #464646 | #a8a8a8 | #a8a8a8 | #5f5f5f | #5f5f5f |
#a5a5a5 | #a5a5a5 | #383838 | #383838 | #b9b9b9 | #b9b9b9 | #4c4c4c | #4c4c4c |
#bcbcbc | #bcbcbc | #2a2a2a | #2a2a2a | #cbcbcb | #cbcbcb | #393939 | #393939 |
#d2d2d2 | #d2d2d2 | #1c1c1c | #1c1c1c | #dcdcdc | #dcdcdc | #262626 | #262626 |
#e8e8e8 | #e8e8e8 | #0e0e0e | #0e0e0e | #ededed | #ededed | #131313 | #131313 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <strong> auf Farbwert #868686. Die Schriftart setzen wir auf courier new und erhöhen die Schriftgröße auf 115%. Wir unterstreichen den Inhalt von <strong> mit Hilfe eines doppelten Rahmens mit 2 Pixel Dicke in Farbe gray99. Dies geht in HTML kaum. Daher formatieren wir mit CSS.
<style type="text/css"><!-- strong { border-bottom-color: gray99; font-family: courier new; color: #868686; border-bottom-style: double; font-size: 115%; border-bottom-width: 2px; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema strong lesen Sie in Text in HTML. Einzelheiten vom Befehl <strong>.