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 #0a0a0a | Schriftfarbwert #222222 | |||||
Detail | : | Hintergrund #0a0a0a | Detail | : | Schrift #222222 | |
Farbwert | : | #0a0a0a | Farbwert | : | #222222 | |
Farbe | : | gray10 | Farbe | : | gray34 | |
HTML | : | #0a0a0a | HTML | : | #222222 | |
HTML (Wert) | : | #0a0a0a | HTML (Wert) | : | #222222 | |
CSS | : | #0a0a0a | CSS | : | #222222 | |
CSS (Wert) | : | #0a0a0a | CSS (Wert) | : | #222222 | |
CSS (kürzest) | : | #0a0a0a | CSS (kürzest) | : | #222 | |
CSS (RGB) | : | rgb(10,10,10) | CSS (RGB) | : | rgb(34,34,34) | |
CSS (%RGB) | : | rgb(3%,3%,3%) | CSS (%RGB) | : | rgb(13%,13%,13%) |
Verlauf Hintergrundfarbwert #0a0a0a nach Schriftfarbwert #222222 | |||||||
#0a0a0a | #0d0d0d | #101010 | #141414 | #171717 | #1b1b1b | #1e1e1e | #222222 |
#0a0a0a | #0d0d0d | #101010 | #141414 | #171717 | #1b1b1b | #1e1e1e | #222222 |
Kombination von #0a0a0a und #222222 | |||||||
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. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Die Ähnlichkeit von #222222 und #0a0a0a beträgt 94.07%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 5.93%. #222222 eignet sich nicht als Schriftfarbe auf Hintergrund #0a0a0a. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. |
Hintergrundfarbwert #0a0a0a | Schriftfarbwert #222222 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#0a0a0a | #0a0a0a | #0a0a0a | #0a0a0a | #222222 | #222222 | #222222 | #222222 |
#2d2d2d | #2d2d2d | #080808 | #080808 | #414141 | #414141 | #1d1d1d | #1d1d1d |
#505050 | #505050 | #070707 | #070707 | #616161 | #616161 | #181818 | #181818 |
#737373 | #737373 | #050505 | #050505 | #808080 | #808080 | #131313 | #131313 |
#969696 | #969696 | #040404 | #040404 | #a0a0a0 | #a0a0a0 | #0e0e0e | #0e0e0e |
#b9b9b9 | #b9b9b9 | #020202 | #020202 | #bfbfbf | #bfbfbf | #090909 | #090909 |
#dcdcdc | #dcdcdc | #010101 | #010101 | #dfdfdf | #dfdfdf | #040404 | #040404 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <dt> auf Farbwert #222222 und die Hintergrundfarbe von <dt> auf Farbwert #0a0a0a. Als Schriftart wählen wir arial und verkleinern die Schriftgröße auf 93%.
<style type="text/css"><!-- dt { color: #222; background-color: #0a0a0a; font-family: arial; font-size: 93%; } //--> </style>
Weiteres zu dt finden Sie in Listen und Glossare in HTML. Einzelheiten vom Tag <dt>.