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 #b9b9b9 | Schriftfarbwert #2d2d2d | |||||
Detail | : | Hintergrund #b9b9b9 | Detail | : | Schrift #2d2d2d | |
Farbwert | : | #b9b9b9 | Farbwert | : | #2d2d2d | |
Farbe | : | gray185 | Farbe | : | gray45 | |
HTML | : | #b9b9b9 | HTML | : | #2d2d2d | |
HTML (Wert) | : | #b9b9b9 | HTML (Wert) | : | #2d2d2d | |
CSS | : | #b9b9b9 | CSS | : | #2d2d2d | |
CSS (Wert) | : | #b9b9b9 | CSS (Wert) | : | #2d2d2d | |
CSS (kürzest) | : | #b9b9b9 | CSS (kürzest) | : | #2d2d2d | |
CSS (RGB) | : | rgb(185,185,185) | CSS (RGB) | : | rgb(45,45,45) | |
CSS (%RGB) | : | rgb(72%,72%,72%) | CSS (%RGB) | : | rgb(17%,17%,17%) |
Verlauf Hintergrundfarbwert #b9b9b9 nach Schriftfarbwert #2d2d2d | |||||||
#b9b9b9 | #a5a5a5 | #919191 | #7d7d7d | #696969 | #555555 | #414141 | #2d2d2d |
#b9b9b9 | #a5a5a5 | #919191 | #7d7d7d | #696969 | #555555 | #414141 | #2d2d2d |
Kombination von #b9b9b9 und #2d2d2d | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #2d2d2d und #b9b9b9 ergibt sich zu 66.58%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 33.42%. #2d2d2d ist nicht als Schriftfarbe auf Hintergrund #b9b9b9 geeignet, da die Farben zu ähnlich sind. |
Hintergrundfarbwert #b9b9b9 | Schriftfarbwert #2d2d2d | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#b9b9b9 | #b9b9b9 | #b9b9b9 | #b9b9b9 | #2d2d2d | #2d2d2d | #2d2d2d | #2d2d2d |
#c3c3c3 | #c3c3c3 | #9e9e9e | #9e9e9e | #4b4b4b | #4b4b4b | #262626 | #262626 |
#cdcdcd | #cdcdcd | #848484 | #848484 | #696969 | #696969 | #202020 | #202020 |
#d7d7d7 | #d7d7d7 | #696969 | #696969 | #878787 | #878787 | #191919 | #191919 |
#e1e1e1 | #e1e1e1 | #4f4f4f | #4f4f4f | #a5a5a5 | #a5a5a5 | #131313 | #131313 |
#ebebeb | #ebebeb | #343434 | #343434 | #c3c3c3 | #c3c3c3 | #0c0c0c | #0c0c0c |
#f5f5f5 | #f5f5f5 | #1a1a1a | #1a1a1a | #e1e1e1 | #e1e1e1 | #060606 | #060606 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #b9b9b9 auf Farbwert #2d2d2d ändern, wenn man mit der Maus darauf zeigt. Wir bereiten zunächst eine Formatierung von <blockquote> in Farbwert #b9b9b9 vor.
Für dieses Beispiel setzen wir bei <blockquote> die Textfarbe auf Farbwert #b9b9b9.
<style type="text/css"><!-- blockquote { color:#b9b9b9; } //--> </style>Jetzt stellen wir ein, dass sich bei Hover die Textfarbe auf #2d2d2d ändert.
<style type="text/css"><!-- blockquote: hover { color: #2d2d2d; } //--> </style>
Mehr zu blockquote können Sie in Blockorientierte Elemente in HTML erfahren. Weiteres zum hier verwendeten Befehl <blockquote>.
Hier ändern wir die Textfarbe von <abbr> auf Farbwert #2d2d2d und die Hintergrundfarbe von <abbr> auf Farbwert #b9b9b9. Die Schriftart ändern wir auf courier new. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- abbr { color: #2d2d2d; font-size: 13px; background-color: #b9b9b9; font-family: courier new; } //--> </style>
Beschreibung vom hier gezeigten Tag <abbr>.