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 #4b4b4b | Schriftfarbe white | |||||
Detail | : | Hintergrund #4b4b4b | Detail | : | Schrift white | |
Farbwert | : | #4b4b4b | Farbe | : | white | |
Farbe | : | gray75 | Farbwert | : | #ffffff | |
HTML | : | #4b4b4b | HTML | : | white | |
HTML (Wert) | : | #4b4b4b | HTML (Wert) | : | #ffffff | |
CSS | : | #4b4b4b | CSS | : | white | |
CSS (Wert) | : | #4b4b4b | CSS (Wert) | : | #ffffff | |
CSS (kürzest) | : | #4b4b4b | CSS (kürzest) | : | #fff | |
CSS (RGB) | : | rgb(75,75,75) | CSS (RGB) | : | rgb(255,255,255) | |
CSS (%RGB) | : | rgb(29%,29%,29%) | CSS (%RGB) | : | rgb(100%,100%,100%) |
Verlauf Hintergrundfarbwert #4b4b4b nach Schriftfarbe white | |||||||
#4b4b4b | #646464 | #7e7e7e | #989898 | #b1b1b1 | #cbcbcb | #e5e5e5 | #ffffff |
#4b4b4b | #646464 | #7e7e7e | #989898 | #b1b1b1 | #cbcbcb | #e5e5e5 | #ffffff |
Kombination von #4b4b4b und white | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | white eignet sich als Schriftfarbe auf Hintergrund #4b4b4b, weil die Unterschiede in Helligkeit und Farbe gut sind. Die Ähnlichkeit von white und #4b4b4b beträgt 58.46%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 41.54%. |
Hintergrundfarbwert #4b4b4b | Schriftfarbe white | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#4b4b4b | #4b4b4b | #4b4b4b | #4b4b4b | #ffffff | #ffffff | #ffffff | #ffffff |
#646464 | #646464 | #404040 | #404040 | #ffffff | #ffffff | #dadada | #dadada |
#7e7e7e | #7e7e7e | #353535 | #353535 | #ffffff | #ffffff | #b6b6b6 | #b6b6b6 |
#989898 | #989898 | #2a2a2a | #2a2a2a | #ffffff | #ffffff | #919191 | #919191 |
#b1b1b1 | #b1b1b1 | #202020 | #202020 | #ffffff | #ffffff | #6d6d6d | #6d6d6d |
#cbcbcb | #cbcbcb | #151515 | #151515 | #ffffff | #ffffff | #484848 | #484848 |
#e5e5e5 | #e5e5e5 | #0a0a0a | #0a0a0a | #ffffff | #ffffff | #242424 | #242424 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <thead> mit einem . Die Hintergrundfarbe für <thead> setzen wir auf Farbwert #4b4b4b. Das geht mit HTML kaum. Daher verwenden wir hierfür CSS.
<style type="text/css"><!-- thead { border:1pt outset white; background-color:#4b4b4b; } //--> </style>
Mehr zum Thema lesen Sie in Tabellen in HTML. Mehr zum HTML-Befehl <thead>.