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 #bababa | Schriftfarbwert #838383 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift #838383 | |
Farbwert | : | #bababa | Farbwert | : | #838383 | |
Farbe | : | gray186 | Farbe | : | gray131 | |
HTML | : | #bababa | HTML | : | #838383 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #838383 | |
CSS | : | #bababa | CSS | : | #838383 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #838383 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #838383 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(131,131,131) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(51%,51%,51%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbwert #838383 | |||||||
#bababa | #b2b2b2 | #aaaaaa | #a2a2a2 | #9a9a9a | #929292 | #8a8a8a | #838383 |
#bababa | #b2b2b2 | #aaaaaa | #a2a2a2 | #9a9a9a | #929292 | #8a8a8a | #838383 |
Kombination von #bababa und #838383 | |||||||
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 #838383 und #bababa ergibt sich zu 90.70%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 9.30%. #838383 ist nicht als Schriftfarbe auf Hintergrund #bababa geeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. |
Hintergrundfarbwert #bababa | Schriftfarbwert #838383 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #838383 | #838383 | #838383 | #838383 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #949494 | #949494 | #707070 | #707070 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #a6a6a6 | #a6a6a6 | #5d5d5d | #5d5d5d |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #b8b8b8 | #b8b8b8 | #4a4a4a | #4a4a4a |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #c9c9c9 | #c9c9c9 | #383838 | #383838 |
#ebebeb | #ebebeb | #353535 | #353535 | #dbdbdb | #dbdbdb | #252525 | #252525 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #ededed | #ededed | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <blockquote> auf Farbwert #838383. Die Schriftart setzen wir auf sans-serif und erhöhen die Schriftgröße auf 123%. Wir unterstreichen den Inhalt von <blockquote> mit Hilfe eines gepunkteten Rahmens mit 1 Pixel Dicke in Farbwert #bababa. Das ist mit HTML kaum möglich. Wir nutzen daher CSS zur Formatierung.
<style type="text/css"><!-- blockquote { border-bottom: 1px dotted #bababa; color: #838383; font-family: sans-serif; font-size: 123%; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema finden Sie in Blockorientierte Elemente in HTML. Mehr zum Befehl <blockquote>.
Wir ändern für dieses Beispiel die Textfarbe von <center> auf Farbwert #838383 und die Hintergrundfarbe von <center> auf Farbwert #bababa. Als Schriftart setzen wir monospace und ändern die Schriftgröße auf 12px.
<style type="text/css"><!-- center { color: #838383; background-color: #bababa; font-size: 12px; font-family: monospace; } //--> </style>
Weiteres zum Thema lesen Sie in Grundlegende Gestaltungselemente in HTML. Einzelheiten des HTML-Befehl <center>.