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 #383838 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift #383838 | |
Farbwert | : | #bababa | Farbwert | : | #383838 | |
Farbe | : | gray186 | Farbe | : | gray56 | |
HTML | : | #bababa | HTML | : | #383838 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #383838 | |
CSS | : | #bababa | CSS | : | #383838 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #383838 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #383838 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(56,56,56) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(21%,21%,21%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbwert #383838 | |||||||
#bababa | #a7a7a7 | #949494 | #828282 | #6f6f6f | #5d5d5d | #4a4a4a | #383838 |
#bababa | #a7a7a7 | #949494 | #828282 | #6f6f6f | #5d5d5d | #4a4a4a | #383838 |
Kombination von #bababa und #383838 | |||||||
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 id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. | #383838 ist nicht als Schriftfarbe auf Hintergrund #bababa geeignet. Zwar ist der Helligkeitsunterschied gross genug, doch die Farben selbst sind zu ähnlich. Die Ähnlichkeit von #383838 und #bababa beträgt 71.23%. Die Lesbarkeit dieser Kombination liegt damit bei 28.77%. |
Hintergrundfarbwert #bababa | Schriftfarbwert #383838 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #383838 | #383838 | #383838 | #383838 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #545454 | #545454 | #303030 | #303030 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #707070 | #707070 | #282828 | #282828 |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #8d8d8d | #8d8d8d | #202020 | #202020 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #a9a9a9 | #a9a9a9 | #181818 | #181818 |
#ebebeb | #ebebeb | #353535 | #353535 | #c6c6c6 | #c6c6c6 | #101010 | #101010 |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e2e2e2 | #e2e2e2 | #080808 | #080808 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Eine Überschrift der 2. Stufe setzen Sie mit Tag <h2>. Diese kann man farblich gestalten.
Hier ändern wir die Textfarbe von <h2> auf Farbwert #383838 und die Hintergrundfarbe von <h2> auf Farbwert #bababa. Als Schriftart setzen wir monospace. Die Schriftgröße verringern wir auf 96%.
<style type="text/css"><!-- h2 { color:#383838; font-family:monospace; background-color:#bababa; font-size:96%; } //--> </style>
Weiteres zum Thema können Sie in Grundlegende Gestaltungselemente in HTML nachsehen. Weiteres zum hier gezeigten HTML-Tag h2 ist in der HTML Referenz unter <h2> ausführlich gezeigt.