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 gray180 | Schriftfarbe gray68 | |||||
Detail | : | Hintergrund gray180 | Detail | : | Schrift gray68 | |
Farbe | : | gray180 | Farbe | : | gray68 | |
Farbwert | : | #b4b4b4 | Farbwert | : | #444444 | |
HTML | : | gray180 | HTML | : | gray68 | |
HTML (Wert) | : | #b4b4b4 | HTML (Wert) | : | #444444 | |
CSS | : | gray180 | CSS | : | gray68 | |
CSS (Wert) | : | #b4b4b4 | CSS (Wert) | : | #444444 | |
CSS (kürzest) | : | #b4b4b4 | CSS (kürzest) | : | #444 | |
CSS (RGB) | : | rgb(180,180,180) | CSS (RGB) | : | rgb(68,68,68) | |
CSS (%RGB) | : | rgb(70%,70%,70%) | CSS (%RGB) | : | rgb(26%,26%,26%) |
Verlauf Hintergrundfarbe gray180 nach Schriftfarbe gray68 | |||||||
#b4b4b4 | #a4a4a4 | #949494 | #848484 | #747474 | #646464 | #545454 | #444444 |
#b4b4b4 | #a4a4a4 | #949494 | #848484 | #747474 | #646464 | #545454 | #444444 |
Kombination von gray180 und gray68 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Auf Hintergrund gray180 ist gray68 ungeeignet, weil sowohl Helligkeit als auch die Farben zu ähnlich sind. Die Ähnlichkeit von gray68 und gray180 ergibt sich zu 77.63%. Die Lesbarkeit dieser Kombination bewerte ich mit 22.37%. |
Hintergrundfarbe gray180 | Schriftfarbe gray68 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b4b4b4 | #b4b4b4 | #b4b4b4 | #b4b4b4 | #444444 | #444444 | #444444 | #444444 |
#bebebe | #bebebe | #9a9a9a | #9a9a9a | #5e5e5e | #5e5e5e | #3a3a3a | #3a3a3a |
#c9c9c9 | #c9c9c9 | #808080 | #808080 | #797979 | #797979 | #303030 | #303030 |
#d4d4d4 | #d4d4d4 | #666666 | #666666 | #949494 | #949494 | #262626 | #262626 |
#dedede | #dedede | #4d4d4d | #4d4d4d | #aeaeae | #aeaeae | #1d1d1d | #1d1d1d |
#e9e9e9 | #e9e9e9 | #333333 | #333333 | #c9c9c9 | #c9c9c9 | #131313 | #131313 |
#f4f4f4 | #f4f4f4 | #191919 | #191919 | #e4e4e4 | #e4e4e4 | #090909 | #090909 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <caption> auf Farbe gray68. Die Schriftart ändern wir auf courier new. Die Schriftgröße setzen wir auf 85%. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines gefurchten Rahmens mit 5 Punkte Dicke in Farbe gray180. In HTML ist dies kaum möglich. Daher formatieren wir mit CSS.
<style type="text/css"><!-- caption { color: gray68; font-size: 85%; border-bottom-width: 5pt; border-bottom-style: groove; border-bottom-color: gray180; font-family: courier new; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema caption können Sie in Tabellen in HTML lesen. Mehr zum Befehl caption erfahren Sie in der HTML Referenz unter <caption>.
Hier ändern wir die Textfarbe von <blockquote> auf Farbe gray68 und die Hintergrundfarbe von <blockquote> auf Farbe gray180. Die Schriftart setzen wir auf courier new und vergrößern die Schriftgröße auf 127%.
<style type="text/css"><!-- blockquote { color: gray68; font-size: 127%; font-family: courier new; background-color: gray180; } //--> </style>
Weiteres zum Thema können Sie in Blockorientierte Elemente in HTML finden. Einzelheiten vom HTML-Befehl blockquote sind in der HTML Referenz bei <blockquote> genau gezeigt.