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 #242424 | Schriftfarbwert #6a6a6a | |||||
Detail | : | Hintergrund #242424 | Detail | : | Schrift #6a6a6a | |
Farbwert | : | #242424 | Farbwert | : | #6a6a6a | |
Farbe | : | gray36 | Farbe | : | gray106 | |
HTML | : | #242424 | HTML | : | #6a6a6a | |
HTML (Wert) | : | #242424 | HTML (Wert) | : | #6a6a6a | |
CSS | : | #242424 | CSS | : | #6a6a6a | |
CSS (Wert) | : | #242424 | CSS (Wert) | : | #6a6a6a | |
CSS (kürzest) | : | #242424 | CSS (kürzest) | : | #6a6a6a | |
CSS (RGB) | : | rgb(36,36,36) | CSS (RGB) | : | rgb(106,106,106) | |
CSS (%RGB) | : | rgb(14%,14%,14%) | CSS (%RGB) | : | rgb(41%,41%,41%) |
Verlauf Hintergrundfarbwert #242424 nach Schriftfarbwert #6a6a6a | |||||||
#242424 | #2e2e2e | #383838 | #424242 | #4c4c4c | #565656 | #606060 | #6a6a6a |
#242424 | #2e2e2e | #383838 | #424242 | #4c4c4c | #565656 | #606060 | #6a6a6a |
Kombination von #242424 und #6a6a6a | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | Auf Hintergrund #242424 ist #6a6a6a ungeeignet. Die Unterschiede in der Helligkeit und Farbe sind zu gering. Die Ähnlichkeit der Farben #6a6a6a und #242424 beträgt 86.33%. Die Lesbarkeit dieser Kombination ergibt sich zu 13.67%. |
Hintergrundfarbwert #242424 | Schriftfarbwert #6a6a6a | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#242424 | #242424 | #242424 | #242424 | #6a6a6a | #6a6a6a | #6a6a6a | #6a6a6a |
#434343 | #434343 | #1e1e1e | #1e1e1e | #7f7f7f | #7f7f7f | #5a5a5a | #5a5a5a |
#626262 | #626262 | #191919 | #191919 | #949494 | #949494 | #4b4b4b | #4b4b4b |
#818181 | #818181 | #141414 | #141414 | #a9a9a9 | #a9a9a9 | #3c3c3c | #3c3c3c |
#a1a1a1 | #a1a1a1 | #0f0f0f | #0f0f0f | #bfbfbf | #bfbfbf | #2d2d2d | #2d2d2d |
#c0c0c0 | #c0c0c0 | #0a0a0a | #0a0a0a | #d4d4d4 | #d4d4d4 | #1e1e1e | #1e1e1e |
#dfdfdf | #dfdfdf | #050505 | #050505 | #e9e9e9 | #e9e9e9 | #0f0f0f | #0f0f0f |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #242424 auf Farbwert #6a6a6a ändern, wenn man mit der Maus auf <textarea> zeigt. Bereiten wir zunächst die Formatierung von <textarea> in Farbwert #242424 vor.
Z.B. legen wir Farbwert #242424 als Textfarbe von <textarea> fest. Zwar ändern wir die Hintergrundfarbe nicht, ändern jedoch die Schriftart auf monospace. Die Schriftgröße setzen wir auf 82%.
<style type="text/css"><!-- textarea { color: #242424; font-size: 82%; font-family: monospace; } //--> </style>Jetzt fordern wir, dass bei Berührung mit der Maus die Textfarbe auf #6a6a6a gesetzt wird.
<style type="text/css"><!-- textarea: hover { color: #6a6a6a; } //--> </style>
Mehr zu textarea können Sie in Formulare in HTML erfahren. Mehr zum hier gezeigten Befehl <textarea>.