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 #b8b8b8 | Schriftfarbwert #a3a3a3 | |||||
Detail | : | Hintergrund #b8b8b8 | Detail | : | Schrift #a3a3a3 | |
Farbwert | : | #b8b8b8 | Farbwert | : | #a3a3a3 | |
Farbe | : | gray184 | Farbe | : | gray163 | |
HTML | : | #b8b8b8 | HTML | : | #a3a3a3 | |
HTML (Wert) | : | #b8b8b8 | HTML (Wert) | : | #a3a3a3 | |
CSS | : | #b8b8b8 | CSS | : | #a3a3a3 | |
CSS (Wert) | : | #b8b8b8 | CSS (Wert) | : | #a3a3a3 | |
CSS (kürzest) | : | #b8b8b8 | CSS (kürzest) | : | #a3a3a3 | |
CSS (RGB) | : | rgb(184,184,184) | CSS (RGB) | : | rgb(163,163,163) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(63%,63%,63%) |
Verlauf Hintergrundfarbwert #b8b8b8 nach Schriftfarbwert #a3a3a3 | |||||||
#b8b8b8 | #b5b5b5 | #b2b2b2 | #afafaf | #acacac | #a9a9a9 | #a6a6a6 | #a3a3a3 |
#b8b8b8 | #b5b5b5 | #b2b2b2 | #afafaf | #acacac | #a9a9a9 | #a6a6a6 | #a3a3a3 |
Kombination von #b8b8b8 und #a3a3a3 | |||||||
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. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Auf Hintergrund #b8b8b8 ist #a3a3a3 ungeeignet, weil die Unterschiede in der Helligkeit und Farbe nicht ausreichend sind. Die Ähnlichkeit von #a3a3a3 und #b8b8b8 beträgt 93.94%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 6.06%. |
Hintergrundfarbwert #b8b8b8 | Schriftfarbwert #a3a3a3 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b8b8b8 | #b8b8b8 | #b8b8b8 | #b8b8b8 | #a3a3a3 | #a3a3a3 | #a3a3a3 | #a3a3a3 |
#c2c2c2 | #c2c2c2 | #9d9d9d | #9d9d9d | #b0b0b0 | #b0b0b0 | #8b8b8b | #8b8b8b |
#cccccc | #cccccc | #838383 | #838383 | #bdbdbd | #bdbdbd | #747474 | #747474 |
#d6d6d6 | #d6d6d6 | #696969 | #696969 | #cacaca | #cacaca | #5d5d5d | #5d5d5d |
#e0e0e0 | #e0e0e0 | #4e4e4e | #4e4e4e | #d7d7d7 | #d7d7d7 | #454545 | #454545 |
#eaeaea | #eaeaea | #343434 | #343434 | #e4e4e4 | #e4e4e4 | #2e2e2e | #2e2e2e |
#f4f4f4 | #f4f4f4 | #1a1a1a | #1a1a1a | #f1f1f1 | #f1f1f1 | #171717 | #171717 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <center> auf Farbwert #a3a3a3 und die Hintergrundfarbe von <center> auf Farbwert #b8b8b8. Die Schriftart ändern wir auf sans-serif. Die Schriftgröße setzen wir auf 86%.
<style type="text/css"><!-- center { font-size:86%; font-family:sans-serif; color:#a3a3a3; background-color:#b8b8b8; } //--> </style>
Mehr zum Thema können Sie in Grundlegende Gestaltungselemente in HTML nachlesen. Der hier gezeigte Befehl center ist in der HTML Referenz bei <center> genau zusammengestellt.