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 #3c3c3c | Schriftfarbwert #aeaeae | |||||
Detail | : | Hintergrund #3c3c3c | Detail | : | Schrift #aeaeae | |
Farbwert | : | #3c3c3c | Farbwert | : | #aeaeae | |
Farbe | : | gray60 | Farbe | : | gray174 | |
HTML | : | #3c3c3c | HTML | : | #aeaeae | |
HTML (Wert) | : | #3c3c3c | HTML (Wert) | : | #aeaeae | |
CSS | : | #3c3c3c | CSS | : | #aeaeae | |
CSS (Wert) | : | #3c3c3c | CSS (Wert) | : | #aeaeae | |
CSS (kürzest) | : | #3c3c3c | CSS (kürzest) | : | #aeaeae | |
CSS (RGB) | : | rgb(60,60,60) | CSS (RGB) | : | rgb(174,174,174) | |
CSS (%RGB) | : | rgb(23%,23%,23%) | CSS (%RGB) | : | rgb(68%,68%,68%) |
Verlauf Hintergrundfarbwert #3c3c3c nach Schriftfarbwert #aeaeae | |||||||
#3c3c3c | #4c4c4c | #5c5c5c | #6c6c6c | #7d7d7d | #8d8d8d | #9d9d9d | #aeaeae |
#3c3c3c | #4c4c4c | #5c5c5c | #6c6c6c | #7d7d7d | #8d8d8d | #9d9d9d | #aeaeae |
Kombination von #3c3c3c und #aeaeae | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. Cras id velit ante. | Die Ähnlichkeit von #aeaeae und #3c3c3c ergibt sich zu 76.32%. Die Lesbarkeit dieser Kombination liegt damit bei 23.68%. #aeaeae eignet sich nicht als Schriftfarbe auf Hintergrund #3c3c3c. Weder der Helligkeitsunterschied noch der Farbunterschied sind ausreichend. |
Hintergrundfarbwert #3c3c3c | Schriftfarbwert #aeaeae | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#3c3c3c | #3c3c3c | #3c3c3c | #3c3c3c | #aeaeae | #aeaeae | #aeaeae | #aeaeae |
#575757 | #575757 | #333333 | #333333 | #b9b9b9 | #b9b9b9 | #959595 | #959595 |
#737373 | #737373 | #2a2a2a | #2a2a2a | #c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c |
#8f8f8f | #8f8f8f | #222222 | #222222 | #d0d0d0 | #d0d0d0 | #636363 | #636363 |
#ababab | #ababab | #191919 | #191919 | #dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a |
#c7c7c7 | #c7c7c7 | #111111 | #111111 | #e7e7e7 | #e7e7e7 | #313131 | #313131 |
#e3e3e3 | #e3e3e3 | #080808 | #080808 | #f3f3f3 | #f3f3f3 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <samp> auf Farbwert #aeaeae und die Hintergrundfarbe von <samp> auf Farbwert #3c3c3c. Als Schriftart setzen wir monospace. Die Schriftgröße setzen wir auf 13px.
<style type="text/css"><!-- samp { color:#aeaeae; font-size:13px; background-color:#3c3c3c; font-family:monospace; } //--> </style>
Weiteres zum Thema samp können Sie in Text in HTML nachlesen. Beschreibung vom HTML-Befehl <samp>.