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 #999999 | Schriftfarbwert #b2b2b2 | |||||
Detail | : | Hintergrund #999999 | Detail | : | Schrift #b2b2b2 | |
Farbwert | : | #999999 | Farbwert | : | #b2b2b2 | |
Farbe | : | gray153 | Farbe | : | gray178 | |
HTML | : | #999999 | HTML | : | #b2b2b2 | |
HTML (Wert) | : | #999999 | HTML (Wert) | : | #b2b2b2 | |
CSS | : | #999999 | CSS | : | #b2b2b2 | |
CSS (Wert) | : | #999999 | CSS (Wert) | : | #b2b2b2 | |
CSS (kürzest) | : | #999 | CSS (kürzest) | : | #b2b2b2 | |
CSS (RGB) | : | rgb(153,153,153) | CSS (RGB) | : | rgb(178,178,178) | |
CSS (%RGB) | : | rgb(60%,60%,60%) | CSS (%RGB) | : | rgb(69%,69%,69%) |
Verlauf Hintergrundfarbwert #999999 nach Schriftfarbwert #b2b2b2 | |||||||
#999999 | #9c9c9c | #a0a0a0 | #a3a3a3 | #a7a7a7 | #aaaaaa | #aeaeae | #b2b2b2 |
#999999 | #9c9c9c | #a0a0a0 | #a3a3a3 | #a7a7a7 | #aaaaaa | #aeaeae | #b2b2b2 |
Kombination von #999999 und #b2b2b2 | |||||||
Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. | #b2b2b2 ist nicht als Schriftfarbe auf Hintergrund #999999 geeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit der Farben #b2b2b2 und #999999 ergibt sich zu 93.60%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 6.40%. |
Hintergrundfarbwert #999999 | Schriftfarbwert #b2b2b2 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#999999 | #999999 | #999999 | #999999 | #b2b2b2 | #b2b2b2 | #b2b2b2 | #b2b2b2 |
#a7a7a7 | #a7a7a7 | #838383 | #838383 | #bdbdbd | #bdbdbd | #989898 | #989898 |
#b6b6b6 | #b6b6b6 | #6d6d6d | #6d6d6d | #c8c8c8 | #c8c8c8 | #7f7f7f | #7f7f7f |
#c4c4c4 | #c4c4c4 | #575757 | #575757 | #d3d3d3 | #d3d3d3 | #656565 | #656565 |
#d3d3d3 | #d3d3d3 | #414141 | #414141 | #dedede | #dedede | #4c4c4c | #4c4c4c |
#e1e1e1 | #e1e1e1 | #2b2b2b | #2b2b2b | #e9e9e9 | #e9e9e9 | #323232 | #323232 |
#f0f0f0 | #f0f0f0 | #151515 | #151515 | #f4f4f4 | #f4f4f4 | #191919 | #191919 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <thead> auf Farbwert #b2b2b2 und die Hintergrundfarbe von <thead> auf Farbwert #999999. Die Schriftart setzen wir auf sans-serif und als Schriftgröße entscheiden wir uns für 9pt.
<style type="text/css"><!-- thead { font-size: 9pt; color: #b2b2b2; background-color: #999; font-family: sans-serif; } //--> </style>
Mehr zum Thema thead können Sie in Tabellen in HTML nachsehen. Weiteres zum HTML-Tag <thead>.