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 gray132 | Schriftfarbe gray174 | |||||
Detail | : | Hintergrund gray132 | Detail | : | Schrift gray174 | |
Farbe | : | gray132 | Farbe | : | gray174 | |
Farbwert | : | #848484 | Farbwert | : | #aeaeae | |
HTML | : | gray132 | HTML | : | gray174 | |
HTML (Wert) | : | #848484 | HTML (Wert) | : | #aeaeae | |
CSS | : | gray132 | CSS | : | gray174 | |
CSS (Wert) | : | #848484 | CSS (Wert) | : | #aeaeae | |
CSS (kürzest) | : | #848484 | CSS (kürzest) | : | #aeaeae | |
CSS (RGB) | : | rgb(132,132,132) | CSS (RGB) | : | rgb(174,174,174) | |
CSS (%RGB) | : | rgb(51%,51%,51%) | CSS (%RGB) | : | rgb(68%,68%,68%) |
Verlauf Hintergrundfarbe gray132 nach Schriftfarbe gray174 | |||||||
#848484 | #8a8a8a | #909090 | #969696 | #9c9c9c | #a2a2a2 | #a8a8a8 | #aeaeae |
#848484 | #8a8a8a | #909090 | #969696 | #9c9c9c | #a2a2a2 | #a8a8a8 | #aeaeae |
Kombination von gray132 und gray174 | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit der Farben gray174 und gray132 beträgt 91.97%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 8.03%. gray174 ist nicht als Schriftfarbe auf Hintergrund gray132 geeignet, weil sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbe gray132 | Schriftfarbe gray174 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#848484 | #848484 | #848484 | #848484 | #aeaeae | #aeaeae | #aeaeae | #aeaeae |
#959595 | #959595 | #717171 | #717171 | #b9b9b9 | #b9b9b9 | #959595 | #959595 |
#a7a7a7 | #a7a7a7 | #5e5e5e | #5e5e5e | #c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c |
#b8b8b8 | #b8b8b8 | #4b4b4b | #4b4b4b | #d0d0d0 | #d0d0d0 | #636363 | #636363 |
#cacaca | #cacaca | #383838 | #383838 | #dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a |
#dbdbdb | #dbdbdb | #252525 | #252525 | #e7e7e7 | #e7e7e7 | #313131 | #313131 |
#ededed | #ededed | #121212 | #121212 | #f3f3f3 | #f3f3f3 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Mit HTML-Tag <a> wird ein Hyperlink gesetzt. Diesen können Sie hervorheben und farblich gestalten.
Für dieses Beispiel ändern wir die Textfarbe von <a> auf Farbe gray174 und die Hintergrundfarbe von <a> auf Farbe gray132. Die Schriftart ändern wir auf monospace. Die Schriftgröße ändern wir auf 13px.
<style type="text/css"><!-- a { background-color: gray132; font-family: monospace; font-size: 13px; color: gray174; } //--> </style>
Weiteres zum Thema a finden Sie in Verweise und Protokolle in HTML. Der hier genutzte HTML-Tag a ist in der HTML Referenz bei <a> genau beschrieben.