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 #aeaeae | Schriftfarbwert #969696 | |||||
Detail | : | Hintergrund #aeaeae | Detail | : | Schrift #969696 | |
Farbwert | : | #aeaeae | Farbwert | : | #969696 | |
Farbe | : | gray174 | Farbe | : | gray150 | |
HTML | : | #aeaeae | HTML | : | #969696 | |
HTML (Wert) | : | #aeaeae | HTML (Wert) | : | #969696 | |
CSS | : | #aeaeae | CSS | : | #969696 | |
CSS (Wert) | : | #aeaeae | CSS (Wert) | : | #969696 | |
CSS (kürzest) | : | #aeaeae | CSS (kürzest) | : | #969696 | |
CSS (RGB) | : | rgb(174,174,174) | CSS (RGB) | : | rgb(150,150,150) | |
CSS (%RGB) | : | rgb(68%,68%,68%) | CSS (%RGB) | : | rgb(58%,58%,58%) |
Verlauf Hintergrundfarbwert #aeaeae nach Schriftfarbwert #969696 | |||||||
#aeaeae | #aaaaaa | #a7a7a7 | #a3a3a3 | #a0a0a0 | #9c9c9c | #999999 | #969696 |
#aeaeae | #aaaaaa | #a7a7a7 | #a3a3a3 | #a0a0a0 | #9c9c9c | #999999 | #969696 |
Kombination von #aeaeae und #969696 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Die Ähnlichkeit der Farben #969696 und #aeaeae ergibt sich zu 93.65%. Die Lesbarkeit dieser Farbkombination liegt damit bei 6.35%. Auf Hintergrund #aeaeae ist #969696 ungeeignet, weil die Unterschiede in der Helligkeit und Farbe zu gering sind. |
Hintergrundfarbwert #aeaeae | Schriftfarbwert #969696 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#aeaeae | #aeaeae | #aeaeae | #aeaeae | #969696 | #969696 | #969696 | #969696 |
#b9b9b9 | #b9b9b9 | #959595 | #959595 | #a5a5a5 | #a5a5a5 | #808080 | #808080 |
#c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c | #b4b4b4 | #b4b4b4 | #6b6b6b | #6b6b6b |
#d0d0d0 | #d0d0d0 | #636363 | #636363 | #c3c3c3 | #c3c3c3 | #555555 | #555555 |
#dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a | #d2d2d2 | #d2d2d2 | #404040 | #404040 |
#e7e7e7 | #e7e7e7 | #313131 | #313131 | #e1e1e1 | #e1e1e1 | #2a2a2a | #2a2a2a |
#f3f3f3 | #f3f3f3 | #181818 | #181818 | #f0f0f0 | #f0f0f0 | #151515 | #151515 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Eine Überschrift erzeugen Sie mit Tag <h4>. Diese kann man farblich gestalten.
Wir ändern Hher die Textfarbe von <h4> auf Farbwert #969696. Die Schriftart ändern wir auf monospace. Die Schriftgröße ändern wir auf 11px. Wir unterstreichen den Inhalt von <h4> mit Hilfe eines herausstehenden Rahmens mit 5 Punkte Dicke in Farbwert #aeaeae. Mit HTML geht das kaum. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- h4 { border-bottom:5pt outset #aeaeae; color:#969696; font-size:11px; font-family:monospace; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zu h4 erfahren Sie in Grundlegende Gestaltungselemente in HTML. Einzelheiten vom Befehl <h4>.