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).
Hintergrundfarbe gray90 | Schriftfarbwert #565656 | |||||
Detail | : | Hintergrund gray90 | Detail | : | Schrift #565656 | |
Farbe | : | gray90 | Farbwert | : | #565656 | |
Farbwert | : | #5a5a5a | Farbe | : | gray86 | |
HTML | : | gray90 | HTML | : | #565656 | |
HTML (Wert) | : | #5a5a5a | HTML (Wert) | : | #565656 | |
CSS | : | gray90 | CSS | : | #565656 | |
CSS (Wert) | : | #5a5a5a | CSS (Wert) | : | #565656 | |
CSS (kürzest) | : | #5a5a5a | CSS (kürzest) | : | #565656 | |
CSS (RGB) | : | rgb(90,90,90) | CSS (RGB) | : | rgb(86,86,86) | |
CSS (%RGB) | : | rgb(35%,35%,35%) | CSS (%RGB) | : | rgb(33%,33%,33%) |
Verlauf Hintergrundfarbe gray90 nach Schriftfarbwert #565656 | |||||||
#5a5a5a | #595959 | #585858 | #585858 | #575757 | #575757 | #565656 | #565656 |
#5a5a5a | #595959 | #585858 | #585858 | #575757 | #575757 | #565656 | #565656 |
Kombination von gray90 und #565656 | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | #565656 ist nicht als Schriftfarbe auf Hintergrund gray90 geeignet, weil die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit von #565656 und gray90 beträgt 94.93%. Die Lesbarkeit dieser Farbkombination liegt damit bei 5.07%. |
Hintergrundfarbe gray90 | Schriftfarbwert #565656 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#5a5a5a | #5a5a5a | #5a5a5a | #5a5a5a | #565656 | #565656 | #565656 | #565656 |
#717171 | #717171 | #4d4d4d | #4d4d4d | #6e6e6e | #6e6e6e | #494949 | #494949 |
#898989 | #898989 | #404040 | #404040 | #868686 | #868686 | #3d3d3d | #3d3d3d |
#a0a0a0 | #a0a0a0 | #333333 | #333333 | #9e9e9e | #9e9e9e | #313131 | #313131 |
#b8b8b8 | #b8b8b8 | #262626 | #262626 | #b6b6b6 | #b6b6b6 | #242424 | #242424 |
#cfcfcf | #cfcfcf | #191919 | #191919 | #cecece | #cecece | #181818 | #181818 |
#e7e7e7 | #e7e7e7 | #0c0c0c | #0c0c0c | #e6e6e6 | #e6e6e6 | #0c0c0c | #0c0c0c |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern bei diesem Beispiel die Textfarbe von <tfoot> auf Farbwert #565656 und die Hintergrundfarbe von <tfoot> auf Farbe gray90. Die Schriftart ändern wir auf monospace. Die Schriftgröße setzen wir auf 88%.
<style type="text/css"><!-- tfoot { background-color: gray90; font-family: monospace; color: #565656; font-size: 88%; } //--> </style>
Weiteres zu tfoot finden Sie in Tabellen in HTML. Mehr zum hier genutzten Befehl <tfoot>.
Die Rahmenfarbe soll sich von Farbe gray90 auf Farbwert #565656 ändern, wenn man mit der Maus darauf zeigt. Wir bereiten zunächst eine Darstellung von <span> in Farbe gray90 vor.
In diesem Beispiel umranden wir <span> mit einem 5 Pixel dicken, gepunkteten Rahmen in Farbe gray90.
<style type="text/css"><!-- span { border-width: 5px; border-style: dotted; border-color: gray90; } //--> </style>Jetzt stellen wir ein, dass sich bei Berührung mit der Maus die Rahmenfarbe auf #565656 ändert.
<style type="text/css"><!-- span:hover { border-color:#565656; } //--> </style>
Einzelheiten des hier gezeigten HTML-Tag <span>.