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 #5f5f5f | Schriftfarbe gray74 | |||||
Detail | : | Hintergrund #5f5f5f | Detail | : | Schrift gray74 | |
Farbwert | : | #5f5f5f | Farbe | : | gray74 | |
Farbe | : | gray95 | Farbwert | : | #4a4a4a | |
HTML | : | #5f5f5f | HTML | : | gray74 | |
HTML (Wert) | : | #5f5f5f | HTML (Wert) | : | #4a4a4a | |
CSS | : | #5f5f5f | CSS | : | gray74 | |
CSS (Wert) | : | #5f5f5f | CSS (Wert) | : | #4a4a4a | |
CSS (kürzest) | : | #5f5f5f | CSS (kürzest) | : | #4a4a4a | |
CSS (RGB) | : | rgb(95,95,95) | CSS (RGB) | : | rgb(74,74,74) | |
CSS (%RGB) | : | rgb(37%,37%,37%) | CSS (%RGB) | : | rgb(29%,29%,29%) |
Verlauf Hintergrundfarbwert #5f5f5f nach Schriftfarbe gray74 | |||||||
#5f5f5f | #5c5c5c | #595959 | #565656 | #535353 | #505050 | #4d4d4d | #4a4a4a |
#5f5f5f | #5c5c5c | #595959 | #565656 | #535353 | #505050 | #4d4d4d | #4a4a4a |
Kombination von #5f5f5f und gray74 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Die Ähnlichkeit von gray74 und #5f5f5f ergibt sich zu 93.39%. Die Lesbarkeit dieser Farbkombination liegt damit bei 6.61%. gray74 ist nicht als Schriftfarbe auf Hintergrund #5f5f5f geeignet. Weder der Helligkeitsunterschied noch der Farbunterschied sind gross genug. |
Hintergrundfarbwert #5f5f5f | Schriftfarbe gray74 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#5f5f5f | #5f5f5f | #5f5f5f | #5f5f5f | #4a4a4a | #4a4a4a | #4a4a4a | #4a4a4a |
#757575 | #757575 | #515151 | #515151 | #636363 | #636363 | #3f3f3f | #3f3f3f |
#8c8c8c | #8c8c8c | #434343 | #434343 | #7d7d7d | #7d7d7d | #343434 | #343434 |
#a3a3a3 | #a3a3a3 | #363636 | #363636 | #979797 | #979797 | #2a2a2a | #2a2a2a |
#bababa | #bababa | #282828 | #282828 | #b1b1b1 | #b1b1b1 | #1f1f1f | #1f1f1f |
#d1d1d1 | #d1d1d1 | #1b1b1b | #1b1b1b | #cbcbcb | #cbcbcb | #151515 | #151515 |
#e8e8e8 | #e8e8e8 | #0d0d0d | #0d0d0d | #e5e5e5 | #e5e5e5 | #0a0a0a | #0a0a0a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <tr> auf Farbe gray74 und die Hintergrundfarbe von <tr> auf Farbwert #5f5f5f. Die Schriftart ändern wir auf monospace und erhöhen die Schriftgröße auf 113%.
<style type="text/css"><!-- tr { color:gray74; background-color:#5f5f5f; font-size:113%; font-family:monospace; } //--> </style>
Weiteres zum Thema tr finden Sie in Tabellen in HTML. Weiteres zum Befehl <tr>.