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 #474747 | Schriftfarbwert #a5a5a5 | |||||
Detail | : | Hintergrund #474747 | Detail | : | Schrift #a5a5a5 | |
Farbwert | : | #474747 | Farbwert | : | #a5a5a5 | |
Farbe | : | gray71 | Farbe | : | gray165 | |
HTML | : | #474747 | HTML | : | #a5a5a5 | |
HTML (Wert) | : | #474747 | HTML (Wert) | : | #a5a5a5 | |
CSS | : | #474747 | CSS | : | #a5a5a5 | |
CSS (Wert) | : | #474747 | CSS (Wert) | : | #a5a5a5 | |
CSS (kürzest) | : | #474747 | CSS (kürzest) | : | #a5a5a5 | |
CSS (RGB) | : | rgb(71,71,71) | CSS (RGB) | : | rgb(165,165,165) | |
CSS (%RGB) | : | rgb(27%,27%,27%) | CSS (%RGB) | : | rgb(64%,64%,64%) |
Verlauf Hintergrundfarbwert #474747 nach Schriftfarbwert #a5a5a5 | |||||||
#474747 | #545454 | #616161 | #6f6f6f | #7c7c7c | #8a8a8a | #979797 | #a5a5a5 |
#474747 | #545454 | #616161 | #6f6f6f | #7c7c7c | #8a8a8a | #979797 | #a5a5a5 |
Kombination von #474747 und #a5a5a5 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | #a5a5a5 eignet sich nicht als Schriftfarbe auf Hintergrund #474747, da weder der Helligkeitsunterschied noch der Farbunterschied ausreichend sind. Die Ähnlichkeit von #a5a5a5 und #474747 beträgt 82.04%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 17.96%. |
Hintergrundfarbwert #474747 | Schriftfarbwert #a5a5a5 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#474747 | #474747 | #474747 | #474747 | #a5a5a5 | #a5a5a5 | #a5a5a5 | #a5a5a5 |
#616161 | #616161 | #3c3c3c | #3c3c3c | #b1b1b1 | #b1b1b1 | #8d8d8d | #8d8d8d |
#7b7b7b | #7b7b7b | #323232 | #323232 | #bebebe | #bebebe | #757575 | #757575 |
#959595 | #959595 | #282828 | #282828 | #cbcbcb | #cbcbcb | #5e5e5e | #5e5e5e |
#b0b0b0 | #b0b0b0 | #1e1e1e | #1e1e1e | #d8d8d8 | #d8d8d8 | #464646 | #464646 |
#cacaca | #cacaca | #141414 | #141414 | #e5e5e5 | #e5e5e5 | #2f2f2f | #2f2f2f |
#e4e4e4 | #e4e4e4 | #0a0a0a | #0a0a0a | #f2f2f2 | #f2f2f2 | #171717 | #171717 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <thead> auf Farbwert #a5a5a5 und die Hintergrundfarbe von <thead> auf Farbwert #474747. Als Schriftart setzen wir courier new. Die Schriftgröße setzen wir auf 91%.
<style type="text/css"><!-- thead { font-size: 91%; font-family: courier new; color: #a5a5a5; background-color: #474747; } //--> </style>
Weiteres zum Thema können Sie in Tabellen in HTML nachsehen. Möglichkeiten des hier genutzten HTML-Befehl thead finden Sie in der HTML Referenz unter <thead>.