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 #b2b2b2 | Schriftfarbwert #969696 | |||||
Detail | : | Hintergrund #b2b2b2 | Detail | : | Schrift #969696 | |
Farbwert | : | #b2b2b2 | Farbwert | : | #969696 | |
Farbe | : | gray178 | Farbe | : | gray150 | |
HTML | : | #b2b2b2 | HTML | : | #969696 | |
HTML (Wert) | : | #b2b2b2 | HTML (Wert) | : | #969696 | |
CSS | : | #b2b2b2 | CSS | : | #969696 | |
CSS (Wert) | : | #b2b2b2 | CSS (Wert) | : | #969696 | |
CSS (kürzest) | : | #b2b2b2 | CSS (kürzest) | : | #969696 | |
CSS (RGB) | : | rgb(178,178,178) | CSS (RGB) | : | rgb(150,150,150) | |
CSS (%RGB) | : | rgb(69%,69%,69%) | CSS (%RGB) | : | rgb(58%,58%,58%) |
Verlauf Hintergrundfarbwert #b2b2b2 nach Schriftfarbwert #969696 | |||||||
#b2b2b2 | #aeaeae | #aaaaaa | #a6a6a6 | #a2a2a2 | #9e9e9e | #9a9a9a | #969696 |
#b2b2b2 | #aeaeae | #aaaaaa | #a6a6a6 | #a2a2a2 | #9e9e9e | #9a9a9a | #969696 |
Kombination von #b2b2b2 und #969696 | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Auf Hintergrund #b2b2b2 ist #969696 ungeeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit der Farben #969696 und #b2b2b2 ergibt sich zu 93.36%. Die Lesbarkeit dieser Kombination bewerte ich mit 6.64%. |
Hintergrundfarbwert #b2b2b2 | Schriftfarbwert #969696 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b2b2b2 | #b2b2b2 | #b2b2b2 | #b2b2b2 | #969696 | #969696 | #969696 | #969696 |
#bdbdbd | #bdbdbd | #989898 | #989898 | #a5a5a5 | #a5a5a5 | #808080 | #808080 |
#c8c8c8 | #c8c8c8 | #7f7f7f | #7f7f7f | #b4b4b4 | #b4b4b4 | #6b6b6b | #6b6b6b |
#d3d3d3 | #d3d3d3 | #656565 | #656565 | #c3c3c3 | #c3c3c3 | #555555 | #555555 |
#dedede | #dedede | #4c4c4c | #4c4c4c | #d2d2d2 | #d2d2d2 | #404040 | #404040 |
#e9e9e9 | #e9e9e9 | #323232 | #323232 | #e1e1e1 | #e1e1e1 | #2a2a2a | #2a2a2a |
#f4f4f4 | #f4f4f4 | #191919 | #191919 | #f0f0f0 | #f0f0f0 | #151515 | #151515 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <table> auf Farbwert #969696 und die Hintergrundfarbe von <table> auf Farbwert #b2b2b2. Die Schriftart ändern wir auf monospace. Die Schriftgröße setzen wir auf 14px.
<style type="text/css"><!-- table { font-family: monospace; color: #969696; font-size: 14px; background-color: #b2b2b2; } //--> </style>
Mehr zum Thema table lesen Sie in Tabellen in HTML. Mehr zum Befehl <table>.