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 gray168 | Schriftfarbwert #cecece | |||||
Detail | : | Hintergrund gray168 | Detail | : | Schrift #cecece | |
Farbe | : | gray168 | Farbwert | : | #cecece | |
Farbwert | : | #a8a8a8 | Farbe | : | gray206 | |
HTML | : | gray168 | HTML | : | #cecece | |
HTML (Wert) | : | #a8a8a8 | HTML (Wert) | : | #cecece | |
CSS | : | gray168 | CSS | : | #cecece | |
CSS (Wert) | : | #a8a8a8 | CSS (Wert) | : | #cecece | |
CSS (kürzest) | : | #a8a8a8 | CSS (kürzest) | : | #cecece | |
CSS (RGB) | : | rgb(168,168,168) | CSS (RGB) | : | rgb(206,206,206) | |
CSS (%RGB) | : | rgb(65%,65%,65%) | CSS (%RGB) | : | rgb(80%,80%,80%) |
Verlauf Hintergrundfarbe gray168 nach Schriftfarbwert #cecece | |||||||
#a8a8a8 | #adadad | #b2b2b2 | #b8b8b8 | #bdbdbd | #c3c3c3 | #c8c8c8 | #cecece |
#a8a8a8 | #adadad | #b2b2b2 | #b8b8b8 | #bdbdbd | #c3c3c3 | #c8c8c8 | #cecece |
Kombination von gray168 und #cecece | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | #cecece ist nicht als Schriftfarbe auf Hintergrund gray168 geeignet, weil weder der Helligkeitsunterschied noch der Farbunterschied ausreichend sind. Die Ähnlichkeit von #cecece und gray168 beträgt 92.80%. Die Lesbarkeit dieser Kombination liegt damit bei 7.20%. |
Hintergrundfarbe gray168 | Schriftfarbwert #cecece | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#a8a8a8 | #a8a8a8 | #a8a8a8 | #a8a8a8 | #cecece | #cecece | #cecece | #cecece |
#b4b4b4 | #b4b4b4 | #909090 | #909090 | #d5d5d5 | #d5d5d5 | #b0b0b0 | #b0b0b0 |
#c0c0c0 | #c0c0c0 | #787878 | #787878 | #dcdcdc | #dcdcdc | #939393 | #939393 |
#cdcdcd | #cdcdcd | #606060 | #606060 | #e3e3e3 | #e3e3e3 | #757575 | #757575 |
#d9d9d9 | #d9d9d9 | #484848 | #484848 | #eaeaea | #eaeaea | #585858 | #585858 |
#e6e6e6 | #e6e6e6 | #303030 | #303030 | #f1f1f1 | #f1f1f1 | #3a3a3a | #3a3a3a |
#f2f2f2 | #f2f2f2 | #181818 | #181818 | #f8f8f8 | #f8f8f8 | #1d1d1d | #1d1d1d |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <input> auf Farbwert #cecece und die Hintergrundfarbe von <input> auf Farbe gray168. Die Schriftart setzen wir auf monospace und als Schriftgröße setzen wir 13px.
<style type="text/css"><!-- input { font-family: monospace; color: #cecece; font-size: 13px; background-color: gray168; } //--> </style>
Mehr zum Thema input können Sie in Formulare in HTML finden. Zur Beschreibung vom HTML-Befehl <input>.