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 #ebebeb | Schriftfarbwert #bababa | |||||
Detail | : | Hintergrund #ebebeb | Detail | : | Schrift #bababa | |
Farbwert | : | #ebebeb | Farbwert | : | #bababa | |
Farbe | : | gray235 | Farbe | : | gray186 | |
HTML | : | #ebebeb | HTML | : | #bababa | |
HTML (Wert) | : | #ebebeb | HTML (Wert) | : | #bababa | |
CSS | : | #ebebeb | CSS | : | #bababa | |
CSS (Wert) | : | #ebebeb | CSS (Wert) | : | #bababa | |
CSS (kürzest) | : | #ebebeb | CSS (kürzest) | : | #bababa | |
CSS (RGB) | : | rgb(235,235,235) | CSS (RGB) | : | rgb(186,186,186) | |
CSS (%RGB) | : | rgb(92%,92%,92%) | CSS (%RGB) | : | rgb(72%,72%,72%) |
Verlauf Hintergrundfarbwert #ebebeb nach Schriftfarbwert #bababa | |||||||
#ebebeb | #e4e4e4 | #dddddd | #d6d6d6 | #cfcfcf | #c8c8c8 | #c1c1c1 | #bababa |
#ebebeb | #e4e4e4 | #dddddd | #d6d6d6 | #cfcfcf | #c8c8c8 | #c1c1c1 | #bababa |
Kombination von #ebebeb und #bababa | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. Cras id velit ante. | Auf Hintergrund #ebebeb ist #bababa ungeeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind gross genug. Die Ähnlichkeit von #bababa und #ebebeb beträgt 92.25%. Die Lesbarkeit dieser Kombination liegt damit bei 7.75%. |
Hintergrundfarbwert #ebebeb | Schriftfarbwert #bababa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ebebeb | #ebebeb | #ebebeb | #ebebeb | #bababa | #bababa | #bababa | #bababa |
#ededed | #ededed | #c9c9c9 | #c9c9c9 | #c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f |
#f0f0f0 | #f0f0f0 | #a7a7a7 | #a7a7a7 | #cdcdcd | #cdcdcd | #848484 | #848484 |
#f3f3f3 | #f3f3f3 | #868686 | #868686 | #d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a |
#f6f6f6 | #f6f6f6 | #646464 | #646464 | #e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f |
#f9f9f9 | #f9f9f9 | #434343 | #434343 | #ebebeb | #ebebeb | #353535 | #353535 |
#fcfcfc | #fcfcfc | #212121 | #212121 | #f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel ändern wir die Textfarbe von <center> auf Farbwert #bababa und die Hintergrundfarbe von <center> auf Farbwert #ebebeb. Als Schriftart setzen wir courier new. Die Schriftgröße verringern wir auf 90%.
<style type="text/css"><!-- center { font-size:90%; color:#bababa; background-color:#ebebeb; font-family:courier new; } //--> </style>
Weiteres zu center können Sie in Grundlegende Gestaltungselemente in HTML finden. Weiteres zum HTML-Tag center erfahren Sie in der HTML Referenz unter <center>.