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 #aeaeae | Schriftfarbwert #4d4d4d | |||||
Detail | : | Hintergrund #aeaeae | Detail | : | Schrift #4d4d4d | |
Farbwert | : | #aeaeae | Farbwert | : | #4d4d4d | |
Farbe | : | gray174 | Farbe | : | gray77 | |
HTML | : | #aeaeae | HTML | : | #4d4d4d | |
HTML (Wert) | : | #aeaeae | HTML (Wert) | : | #4d4d4d | |
CSS | : | #aeaeae | CSS | : | #4d4d4d | |
CSS (Wert) | : | #aeaeae | CSS (Wert) | : | #4d4d4d | |
CSS (kürzest) | : | #aeaeae | CSS (kürzest) | : | #4d4d4d | |
CSS (RGB) | : | rgb(174,174,174) | CSS (RGB) | : | rgb(77,77,77) | |
CSS (%RGB) | : | rgb(68%,68%,68%) | CSS (%RGB) | : | rgb(30%,30%,30%) |
Verlauf Hintergrundfarbwert #aeaeae nach Schriftfarbwert #4d4d4d | |||||||
#aeaeae | #a0a0a0 | #929292 | #848484 | #767676 | #686868 | #5a5a5a | #4d4d4d |
#aeaeae | #a0a0a0 | #929292 | #848484 | #767676 | #686868 | #5a5a5a | #4d4d4d |
Kombination von #aeaeae und #4d4d4d | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. Cras vestibulum tristique erat, ac interdum justo cursus in. | #4d4d4d eignet sich nicht als Schriftfarbe auf Hintergrund #aeaeae. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit von #4d4d4d und #aeaeae beträgt 81.86%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 18.14%. |
Hintergrundfarbwert #aeaeae | Schriftfarbwert #4d4d4d | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#aeaeae | #aeaeae | #aeaeae | #aeaeae | #4d4d4d | #4d4d4d | #4d4d4d | #4d4d4d |
#b9b9b9 | #b9b9b9 | #959595 | #959595 | #666666 | #666666 | #424242 | #424242 |
#c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c | #7f7f7f | #7f7f7f | #373737 | #373737 |
#d0d0d0 | #d0d0d0 | #636363 | #636363 | #999999 | #999999 | #2c2c2c | #2c2c2c |
#dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a | #b2b2b2 | #b2b2b2 | #212121 | #212121 |
#e7e7e7 | #e7e7e7 | #313131 | #313131 | #cccccc | #cccccc | #161616 | #161616 |
#f3f3f3 | #f3f3f3 | #181818 | #181818 | #e5e5e5 | #e5e5e5 | #0b0b0b | #0b0b0b |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #aeaeae auf Farbwert #4d4d4d ändern, wenn man mit der Maus auf <p> zeigt. Wir bereiten zunächst die Formatierung von <p> in Farbwert #aeaeae vor.
Wir legen zum Beispiel die Textfarbe von <p> auf Farbwert #aeaeae fest. Die Hintergrundfarbe behalten wir bei, setzen jedoch die Schriftart auf monospace. Die Schriftgröße erhöhen wir auf 127%:
<style type="text/css"><!-- p { color: #aeaeae; font-size: 127%; font-family: monospace; } //--> </style>Nun fordern wir, dass bei Mausberührung die Textfarbe auf #4d4d4d geändert wird.
<style type="text/css"><!-- p:hover { color:#4d4d4d; } //--> </style>
Mehr zu p finden Sie in Grundlegende Gestaltungselemente in HTML. Einzelheiten des HTML-Befehl p lesen Sie in der HTML Referenz unter <p>.