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 gray171 | Schriftfarbwert #909090 | |||||
Detail | : | Hintergrund gray171 | Detail | : | Schrift #909090 | |
Farbe | : | gray171 | Farbwert | : | #909090 | |
Farbwert | : | #ababab | Farbe | : | gray144 | |
HTML | : | gray171 | HTML | : | #909090 | |
HTML (Wert) | : | #ababab | HTML (Wert) | : | #909090 | |
CSS | : | gray171 | CSS | : | #909090 | |
CSS (Wert) | : | #ababab | CSS (Wert) | : | #909090 | |
CSS (kürzest) | : | #ababab | CSS (kürzest) | : | #909090 | |
CSS (RGB) | : | rgb(171,171,171) | CSS (RGB) | : | rgb(144,144,144) | |
CSS (%RGB) | : | rgb(67%,67%,67%) | CSS (%RGB) | : | rgb(56%,56%,56%) |
Verlauf Hintergrundfarbe gray171 nach Schriftfarbwert #909090 | |||||||
#ababab | #a7a7a7 | #a3a3a3 | #9f9f9f | #9b9b9b | #979797 | #939393 | #909090 |
#ababab | #a7a7a7 | #a3a3a3 | #9f9f9f | #9b9b9b | #979797 | #939393 | #909090 |
Kombination von gray171 und #909090 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #909090 und gray171 ergibt sich zu 93.38%. Die Lesbarkeit dieser Farbkombination liegt damit bei 6.62%. Auf Hintergrund gray171 ist #909090 ungeeignet. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. |
Hintergrundfarbe gray171 | Schriftfarbwert #909090 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ababab | #ababab | #ababab | #ababab | #909090 | #909090 | #909090 | #909090 |
#b7b7b7 | #b7b7b7 | #929292 | #929292 | #9f9f9f | #9f9f9f | #7b7b7b | #7b7b7b |
#c3c3c3 | #c3c3c3 | #7a7a7a | #7a7a7a | #afafaf | #afafaf | #666666 | #666666 |
#cfcfcf | #cfcfcf | #616161 | #616161 | #bfbfbf | #bfbfbf | #525252 | #525252 |
#dbdbdb | #dbdbdb | #494949 | #494949 | #cfcfcf | #cfcfcf | #3d3d3d | #3d3d3d |
#e7e7e7 | #e7e7e7 | #303030 | #303030 | #dfdfdf | #dfdfdf | #292929 | #292929 |
#f3f3f3 | #f3f3f3 | #181818 | #181818 | #efefef | #efefef | #141414 | #141414 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <iframe> mit einem . Die Hintergrundfarbe für <iframe> setzen wir auf Farbe gray171. Dies geht in HTML kaum. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- iframe { border:2px dotted #909090; background-color:gray171; } //--> </style>
Weiteres zum HTML-Tag <iframe>.
Bei diesem Beispiel ändern wir die Textfarbe von <center> auf Farbwert #909090 und die Hintergrundfarbe von <center> auf Farbe gray171. Die Schriftart ändern wir auf monospace. Als Schriftgröße entscheiden wir uns für 9pt.
<style type="text/css"><!-- center { color: #909090; font-size: 9pt; font-family: monospace; background-color: gray171; } //--> </style>
Weiteres zum Thema finden Sie in Grundlegende Gestaltungselemente in HTML. Die Beschreibung vom Tag center finden Sie in der HTML Referenz unter <center>.