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 #a1a1a1 | Schriftfarbwert #535353 | |||||
Detail | : | Hintergrund #a1a1a1 | Detail | : | Schrift #535353 | |
Farbwert | : | #a1a1a1 | Farbwert | : | #535353 | |
Farbe | : | gray161 | Farbe | : | gray83 | |
HTML | : | #a1a1a1 | HTML | : | #535353 | |
HTML (Wert) | : | #a1a1a1 | HTML (Wert) | : | #535353 | |
CSS | : | #a1a1a1 | CSS | : | #535353 | |
CSS (Wert) | : | #a1a1a1 | CSS (Wert) | : | #535353 | |
CSS (kürzest) | : | #a1a1a1 | CSS (kürzest) | : | #535353 | |
CSS (RGB) | : | rgb(161,161,161) | CSS (RGB) | : | rgb(83,83,83) | |
CSS (%RGB) | : | rgb(63%,63%,63%) | CSS (%RGB) | : | rgb(32%,32%,32%) |
Verlauf Hintergrundfarbwert #a1a1a1 nach Schriftfarbwert #535353 | |||||||
#a1a1a1 | #959595 | #8a8a8a | #7f7f7f | #747474 | #696969 | #5e5e5e | #535353 |
#a1a1a1 | #959595 | #8a8a8a | #7f7f7f | #747474 | #696969 | #5e5e5e | #535353 |
Kombination von #a1a1a1 und #535353 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | #535353 eignet sich nicht als Schriftfarbe auf Hintergrund #a1a1a1. Weder der Helligkeitsunterschied noch der Farbunterschied sind ausreichend. Die Ähnlichkeit von #535353 und #a1a1a1 beträgt 85.82%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 14.18%. |
Hintergrundfarbwert #a1a1a1 | Schriftfarbwert #535353 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a1a1a1 | #a1a1a1 | #a1a1a1 | #a1a1a1 | #535353 | #535353 | #535353 | #535353 |
#aeaeae | #aeaeae | #8a8a8a | #8a8a8a | #6b6b6b | #6b6b6b | #474747 | #474747 |
#bbbbbb | #bbbbbb | #737373 | #737373 | #848484 | #848484 | #3b3b3b | #3b3b3b |
#c9c9c9 | #c9c9c9 | #5c5c5c | #5c5c5c | #9c9c9c | #9c9c9c | #2f2f2f | #2f2f2f |
#d6d6d6 | #d6d6d6 | #454545 | #454545 | #b5b5b5 | #b5b5b5 | #232323 | #232323 |
#e4e4e4 | #e4e4e4 | #2e2e2e | #2e2e2e | #cdcdcd | #cdcdcd | #171717 | #171717 |
#f1f1f1 | #f1f1f1 | #171717 | #171717 | #e6e6e6 | #e6e6e6 | #0b0b0b | #0b0b0b |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <tbody> auf Farbwert #535353 und die Hintergrundfarbe von <tbody> auf Farbwert #a1a1a1. Als Schriftart wählen wir sans-serif und setzen die Schriftgröße auf 96%.
<style type="text/css"><!-- tbody { color: #535353; font-family: sans-serif; background-color: #a1a1a1; font-size: 96%; } //--> </style>
Weiteres zum Thema lesen Sie in Tabellen in HTML. Weiteres zum hier genutzten Befehl tbody ist in der HTML Referenz bei <tbody> gezeigt.