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 #cfcfcf | Schriftfarbwert #313131 | |||||
Detail | : | Hintergrund #cfcfcf | Detail | : | Schrift #313131 | |
Farbwert | : | #cfcfcf | Farbwert | : | #313131 | |
Farbe | : | gray207 | Farbe | : | gray49 | |
HTML | : | #cfcfcf | HTML | : | #313131 | |
HTML (Wert) | : | #cfcfcf | HTML (Wert) | : | #313131 | |
CSS | : | #cfcfcf | CSS | : | #313131 | |
CSS (Wert) | : | #cfcfcf | CSS (Wert) | : | #313131 | |
CSS (kürzest) | : | #cfcfcf | CSS (kürzest) | : | #313131 | |
CSS (RGB) | : | rgb(207,207,207) | CSS (RGB) | : | rgb(49,49,49) | |
CSS (%RGB) | : | rgb(81%,81%,81%) | CSS (%RGB) | : | rgb(19%,19%,19%) |
Verlauf Hintergrundfarbwert #cfcfcf nach Schriftfarbwert #313131 | |||||||
#cfcfcf | #b8b8b8 | #a1a1a1 | #8b8b8b | #747474 | #5e5e5e | #474747 | #313131 |
#cfcfcf | #b8b8b8 | #a1a1a1 | #8b8b8b | #747474 | #5e5e5e | #474747 | #313131 |
Kombination von #cfcfcf und #313131 | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. 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. | #313131 eignet sich nicht als Schriftfarbe auf Hintergrund #cfcfcf, da der Unterschied in den Farben nicht ausreichend ist Die Ähnlichkeit der Farben #313131 und #cfcfcf beträgt 60.24%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 39.76%. |
Hintergrundfarbwert #cfcfcf | Schriftfarbwert #313131 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#cfcfcf | #cfcfcf | #cfcfcf | #cfcfcf | #313131 | #313131 | #313131 | #313131 |
#d5d5d5 | #d5d5d5 | #b1b1b1 | #b1b1b1 | #4e4e4e | #4e4e4e | #2a2a2a | #2a2a2a |
#dcdcdc | #dcdcdc | #939393 | #939393 | #6b6b6b | #6b6b6b | #232323 | #232323 |
#e3e3e3 | #e3e3e3 | #767676 | #767676 | #898989 | #898989 | #1c1c1c | #1c1c1c |
#eaeaea | #eaeaea | #585858 | #585858 | #a6a6a6 | #a6a6a6 | #151515 | #151515 |
#f1f1f1 | #f1f1f1 | #3b3b3b | #3b3b3b | #c4c4c4 | #c4c4c4 | #0e0e0e | #0e0e0e |
#f8f8f8 | #f8f8f8 | #1d1d1d | #1d1d1d | #e1e1e1 | #e1e1e1 | #070707 | #070707 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <th> auf Farbwert #313131 und die Hintergrundfarbe von <th> auf Farbwert #cfcfcf. Die Schriftart setzen wir auf sans-serif und setzen die Schriftgröße auf 12px.
<style type="text/css"><!-- th { color:#313131; font-family:sans-serif; font-size:12px; background-color:#cfcfcf; } //--> </style>
Mehr zum Thema lesen Sie in Tabellen in HTML. Einzelheiten vom Tag <th>.