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 #9b9b9b | |||||
Detail | : | Hintergrund #cfcfcf | Detail | : | Schrift #9b9b9b | |
Farbwert | : | #cfcfcf | Farbwert | : | #9b9b9b | |
Farbe | : | gray207 | Farbe | : | gray155 | |
HTML | : | #cfcfcf | HTML | : | #9b9b9b | |
HTML (Wert) | : | #cfcfcf | HTML (Wert) | : | #9b9b9b | |
CSS | : | #cfcfcf | CSS | : | #9b9b9b | |
CSS (Wert) | : | #cfcfcf | CSS (Wert) | : | #9b9b9b | |
CSS (kürzest) | : | #cfcfcf | CSS (kürzest) | : | #9b9b9b | |
CSS (RGB) | : | rgb(207,207,207) | CSS (RGB) | : | rgb(155,155,155) | |
CSS (%RGB) | : | rgb(81%,81%,81%) | CSS (%RGB) | : | rgb(60%,60%,60%) |
Verlauf Hintergrundfarbwert #cfcfcf nach Schriftfarbwert #9b9b9b | |||||||
#cfcfcf | #c7c7c7 | #c0c0c0 | #b8b8b8 | #b1b1b1 | #a9a9a9 | #a2a2a2 | #9b9b9b |
#cfcfcf | #c7c7c7 | #c0c0c0 | #b8b8b8 | #b1b1b1 | #a9a9a9 | #a2a2a2 | #9b9b9b |
Kombination von #cfcfcf und #9b9b9b | |||||||
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. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. | Die Ähnlichkeit von #9b9b9b und #cfcfcf beträgt 91.50%. Die Lesbarkeit dieser Kombination ergibt sich zu 8.50%. #9b9b9b ist nicht als Schriftfarbe auf Hintergrund #cfcfcf geeignet, da sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbwert #cfcfcf | Schriftfarbwert #9b9b9b | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#cfcfcf | #cfcfcf | #cfcfcf | #cfcfcf | #9b9b9b | #9b9b9b | #9b9b9b | #9b9b9b |
#d5d5d5 | #d5d5d5 | #b1b1b1 | #b1b1b1 | #a9a9a9 | #a9a9a9 | #848484 | #848484 |
#dcdcdc | #dcdcdc | #939393 | #939393 | #b7b7b7 | #b7b7b7 | #6e6e6e | #6e6e6e |
#e3e3e3 | #e3e3e3 | #767676 | #767676 | #c5c5c5 | #c5c5c5 | #585858 | #585858 |
#eaeaea | #eaeaea | #585858 | #585858 | #d4d4d4 | #d4d4d4 | #424242 | #424242 |
#f1f1f1 | #f1f1f1 | #3b3b3b | #3b3b3b | #e2e2e2 | #e2e2e2 | #2c2c2c | #2c2c2c |
#f8f8f8 | #f8f8f8 | #1d1d1d | #1d1d1d | #f0f0f0 | #f0f0f0 | #161616 | #161616 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Rahmenfarbe soll sich von Farbwert #cfcfcf auf Farbwert #9b9b9b ändern, wenn man mit der Maus darauf zeigt. Wir bereiten zunächst eine Darstellung von <blockquote> in Farbwert #cfcfcf vor.
In diesem Beispiel umranden wir <blockquote> mit einem 3 Pixel dicken, gezahnten Rahmen in Farbwert #cfcfcf.
<style type="text/css"><!-- blockquote { border-color:#cfcfcf; border-width:3px; border-style:ridge; } //--> </style>Jetzt fordern wir, dass sich bei Hover die Rahmenfarbe zu #9b9b9b ändert.
<style type="text/css"><!-- blockquote: hover { border-color: #9b9b9b; } //--> </style>
Mehr zum Thema blockquote erfahren Sie in Blockorientierte Elemente in HTML. Beschreibung vom hier verwendeten Tag <blockquote>.