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 #979797 | |||||
Detail | : | Hintergrund #bababa | Detail | : | Schrift #979797 | |
Farbwert | : | #bababa | Farbwert | : | #979797 | |
Farbe | : | gray186 | Farbe | : | gray151 | |
HTML | : | #bababa | HTML | : | #979797 | |
HTML (Wert) | : | #bababa | HTML (Wert) | : | #979797 | |
CSS | : | #bababa | CSS | : | #979797 | |
CSS (Wert) | : | #bababa | CSS (Wert) | : | #979797 | |
CSS (kürzest) | : | #bababa | CSS (kürzest) | : | #979797 | |
CSS (RGB) | : | rgb(186,186,186) | CSS (RGB) | : | rgb(151,151,151) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(59%,59%,59%) |
Verlauf Hintergrundfarbwert #bababa nach Schriftfarbwert #979797 | |||||||
#bababa | #b5b5b5 | #b0b0b0 | #ababab | #a6a6a6 | #a1a1a1 | #9c9c9c | #979797 |
#bababa | #b5b5b5 | #b0b0b0 | #ababab | #a6a6a6 | #a1a1a1 | #9c9c9c | #979797 |
Kombination von #bababa und #979797 | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | #979797 ist nicht als Schriftfarbe auf Hintergrund #bababa geeignet. Die Helligkeit und Farben sind sich zu ähnlich. Die Ähnlichkeit von #979797 und #bababa beträgt 92.83%. Die Lesbarkeit dieser Farbkombination liegt damit bei 7.17%. |
Hintergrundfarbwert #bababa | Schriftfarbwert #979797 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#bababa | #bababa | #bababa | #bababa | #979797 | #979797 | #979797 | #979797 |
#c3c3c3 | #c3c3c3 | #9f9f9f | #9f9f9f | #a5a5a5 | #a5a5a5 | #818181 | #818181 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #b4b4b4 | #b4b4b4 | #6b6b6b | #6b6b6b |
#d7d7d7 | #d7d7d7 | #6a6a6a | #6a6a6a | #c3c3c3 | #c3c3c3 | #565656 | #565656 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #d2d2d2 | #d2d2d2 | #404040 | #404040 |
#ebebeb | #ebebeb | #353535 | #353535 | #e1e1e1 | #e1e1e1 | #2b2b2b | #2b2b2b |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #f0f0f0 | #f0f0f0 | #151515 | #151515 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern bei diesem Beispiel die Textfarbe von <p> auf Farbwert #979797 und die Hintergrundfarbe von <p> auf Farbwert #bababa. Die Schriftart ändern wir auf monospace. Als Schriftgröße setzen wir 13px.
<style type="text/css"><!-- p { color:#979797; font-family:monospace; font-size:13px; background-color:#bababa; } //--> </style>
Weiteres zum Thema p erfahren Sie in Grundlegende Gestaltungselemente in HTML. Möglichkeiten vom hier gezeigten Befehl <p>.