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 gray184 | Schriftfarbe gray132 | |||||
Detail | : | Hintergrund gray184 | Detail | : | Schrift gray132 | |
Farbe | : | gray184 | Farbe | : | gray132 | |
Farbwert | : | #b8b8b8 | Farbwert | : | #848484 | |
HTML | : | gray184 | HTML | : | gray132 | |
HTML (Wert) | : | #b8b8b8 | HTML (Wert) | : | #848484 | |
CSS | : | gray184 | CSS | : | gray132 | |
CSS (Wert) | : | #b8b8b8 | CSS (Wert) | : | #848484 | |
CSS (kürzest) | : | #b8b8b8 | CSS (kürzest) | : | #848484 | |
CSS (RGB) | : | rgb(184,184,184) | CSS (RGB) | : | rgb(132,132,132) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(51%,51%,51%) |
Verlauf Hintergrundfarbe gray184 nach Schriftfarbe gray132 | |||||||
#b8b8b8 | #b0b0b0 | #a9a9a9 | #a1a1a1 | #9a9a9a | #929292 | #8b8b8b | #848484 |
#b8b8b8 | #b0b0b0 | #a9a9a9 | #a1a1a1 | #9a9a9a | #929292 | #8b8b8b | #848484 |
Kombination von gray184 und gray132 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. 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. | Die Ähnlichkeit der Farben gray132 und gray184 beträgt 91.02%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 8.98%. gray132 eignet sich nicht als Schriftfarbe auf Hintergrund gray184. Weder der Helligkeitsunterschied noch der Farbunterschied sind ausreichend. |
Hintergrundfarbe gray184 | Schriftfarbe gray132 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b8b8b8 | #b8b8b8 | #b8b8b8 | #b8b8b8 | #848484 | #848484 | #848484 | #848484 |
#c2c2c2 | #c2c2c2 | #9d9d9d | #9d9d9d | #959595 | #959595 | #717171 | #717171 |
#cccccc | #cccccc | #838383 | #838383 | #a7a7a7 | #a7a7a7 | #5e5e5e | #5e5e5e |
#d6d6d6 | #d6d6d6 | #696969 | #696969 | #b8b8b8 | #b8b8b8 | #4b4b4b | #4b4b4b |
#e0e0e0 | #e0e0e0 | #4e4e4e | #4e4e4e | #cacaca | #cacaca | #383838 | #383838 |
#eaeaea | #eaeaea | #343434 | #343434 | #dbdbdb | #dbdbdb | #252525 | #252525 |
#f4f4f4 | #f4f4f4 | #1a1a1a | #1a1a1a | #ededed | #ededed | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <address> auf Farbe gray132. Die Schriftart ändern wir auf monospace. Die Schriftgröße setzen wir auf 9pt. Wir unterstreichen den Inhalt von <address> mit Hilfe eines herausstehenden Rahmens mit 4 Punkte Dicke in Farbe gray184. In HTML geht das nicht. Daher formatieren wir mit CSS.
<style type="text/css"><!-- address { color: gray132; border-bottom-color: gray184; border-bottom-width: 4pt; border-bottom-style: outset; font-size: 9pt; font-family: monospace; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema address finden Sie in Blockorientierte Elemente in HTML. Mehr zum hier verwendeten Tag <address>.
Wir ändern hier die Textfarbe von <thead> auf Farbe gray132 und die Hintergrundfarbe von <thead> auf Farbe gray184. Die Schriftart ändern wir auf monospace. Die Schriftgröße setzen wir auf 9px.
<style type="text/css"><!-- thead { color:gray132; font-size:9px; background-color:gray184; font-family:monospace; } //--> </style>
Mehr zu thead können Sie in Tabellen in HTML nachlesen. Mehr zum HTML-Tag <thead>.